![]()
ISSN 2379-5980 (online) DOI 10.5195/LEDGER.2026.434
RESEARCH ARTICLE
Permissioned ZK Rollups on Public Blockchains: Scalable and Compliant DeFi Infrastructure for FX Markets
Krzysztof M. Gogol,∗ Johnnatan Messias,† Malte Schlosser,‡ Benjamin Kraner,§ Claudio J. Tessone¶
Abstract. This paper proposes a novel multi-layer blockchain architecture for cross-border FX settlement and trading, combining regulatory compliance with scalability and cost efficiency. At its core is a permissioned zero-knowledge (ZK) rollup deployed as a Layer 2 solution that inherits security from a public Layer 1 blockchain. To further enhance throughput and market competitiveness, the architecture adopts fractal scaling through multiple Layer 3 rollups, each independently operating automated market makers (AMMs) that compete for order flow. To evaluate the system’s effectiveness, we simulate trading costs using three years of historical FX rates, using Project Mariana as a baseline. Our results show that the proposed multi-layer, multi-AMM architecture consistently outperforms the monolithic AMM design in Project Mariana, particularly under conditions of high gas fees or extreme trade sizes. Despite liquidity fragmentation, the system achieves lower swap costs by optimizing gas usage, minimizing slippage, and dynamically routing trades across competing L3 AMMs.
![]()
∗ K. M. Gogol (krzysztofmarcin.gogol@uzh.ch) is an Affiliated Researcher in the UZH Blockchain Center, University of Zurich.
† J. M. Messias (johnme@mpi-sws.org) is a Research Scientist as the Max Planck Institute for Software Systems (MPI-SWS).
‡ M. Schlosser (malte.schlosser@bf.uzh.ch) is a PhD Candidate in the Department of Banking and Finance, University of Zurich.
§ B. Kraner (benjamin.kraner@uzh.ch) is a PhD Candidate in the Blockchain and Distributed Ledger Group, University of Zurich.
¶ C. J. Tessone (claudio.tessone@uzh.ch) is Professor of Blockchain and Distributed Ledger Technologies and Co-founder and Chair of the UZH Blockchain Center, University of Zurich (UZH).
![]()
The launch of Bitcoin in 2008 marked the beginning of a new, decentralized approach to financial infrastructure.1 Bitcoin introduced a peer-to-peer electronic cash system that operated independently of traditional financial intermediaries; however, it was limited in functionality and programmability. In 2014, Ethereum expanded the blockchain ecosystem by introducing smart contracts—computer programs executed within a decentralized virtual machine.2 This innovation laid the foundation for Decentralized Finance (DeFi), a system of trustless financial applications offering services such as trading, lending, borrowing, and asset management.3–6
As DeFi applications matured, the need for non-volatile tokens became clear. This led to the rise of stablecoins—crypto-assets pegged to fiat currencies—enabling predictable on-chain value transfers. The success of stablecoins was one of the catalysts for central banks considering the issuance of their own digital currencies, known as Central Bank Digital Currencies (CBDC).7 While CBDCs share similarities with stablecoins, they differ fundamentally in their issuance and backing: CBDCs are direct liabilities of central banks.5 CBDCs can be classified into retail (accessible to the public)8, 9 and wholesale (restricted to financial institutions).10 The latter, known as wCBDCs, have gained traction for cross-border settlement and interbank use cases.
According to central bank research,11 a blockchain is not a prerequisite for implementing a CBDC; however, the use of one can enable atomic settlement, programmability, and transparency. Smart contracts—first popularized by Ethereum—support composable financial services and are already being tested for wCBDC use cases in projects such as Mariana and Guardian.12, 13 These initiatives explore automated market making and tokenized bond markets using wCBDCs and DeFi-inspired mechanisms.
A key challenge, however, is the scalability, DeFi-compatibility, and compliance of blockchain infrastructure for FX trading and settlement. Some wCBDC pilots to date have relied on private and permissioned Layer-1 (L1) blockchains. While these offer operational control, they impose infrastructure costs and lack the public verifiability offered by decentralized L1s like Ethereum or Solana. Furthermore, many permissioned L1 networks do not support smart contracts or offer limited compatibility with Ethereum Virtual Machine (EVM), effectively preventing the application of DeFi protocols, predominantly developed for EVM.14 In contrast, permissionless L1s like Ethereum and Solana offer strong security guarantees but fall short of the throughput and compliance demands of central banks. Experimentation is ongoing, including projects like Mandala, which explore the use of zero-knowledge (ZK) proofs to bring compliance guarantees to public chains.15
Layer-2 (L2) rollups—scalability solutions that post compressed transaction data to a public L1—offer a compelling middle ground. By executing transactions off-chain and anchoring data on-chain, rollups reduce gas costs and latency while inheriting the consensus security of the L1, also improving transaction throughput and finality.16–18 These advantages have led to a transition of user activity and liquidity from Ethereum to its permissionless rollups. Optimistic rollups such as Arbitrum and Optimism, along with ZK rollups like zkSync, now process more daily transactions than Ethereum itself. Among these, ZK rollups offer even stronger scalability and security guarantees by using ZK proofs to verify off-chain execution.19 These systems aggregate transactions off-chain and submit succinct validity proofs to Ethereum, ensuring correctness without requiring each transaction to be executed on-chain.
Simultaneously, financial institutions are exploring permissioned ZK rollups: operated by a trusted party on top of a public L1. This architecture allows transaction compliance monitoring or freezing but prevents historical reversion, asset seizure, or ledger manipulation—capabilities that are possible on permissioned L1s due to their centralized validator sets. Rollups can be further scaled using fractal architectures, where Layer-3 (L3) rollups are deployed atop L2s and optimized for specialized applications. This paper proposes such a setup: a permissioned ZK-rollup (L2) hosting multiple L3 AMMs optimized for FX settlement. Automated Market Makers (AMMs) are decentralized exchange mechanisms that enable algorithmic price discovery while eliminating counterparty risk.20, 21
1.1. Contributions—This paper proposes a novel application of ZK rollup fractal scaling: a permissioned ZK-rollup (L2) that hosts multiple Layer-3 (L3) with Automated Market Makers (AMMs) optimized for foreign exchange (FX) settlement. The system combines the security `guarantees (and decentralization) of an underlying public Layer-1 (L1) blockchain with com-pliance control through permissioned transaction sequencing on L2 and L3. Transactions are dynamically routed to the most cost-efficient L3 AMM, optimizing for gas fees, liquidity provider (LP) fees, and price impact. To evaluate its performance, we compare our architecture to the single-pool design implemented in Project Mariana, using three years of historical FX data. Our results demonstrate that, despite potential liquidity fragmentation, the proposed multi-layer, multi-AMM architecture consistently lowers FX trading costs across a wide range of transaction sizes and market conditions. Our main contributions are as follows:
► Architecture and Design: We propose a scalable multi-layer architecture for cross-border FX trading and settlement that incorporates fractal scaling via L2 and L3 ZK rollups. This design supports multiple competing DeFi protocols, each optimized for different transaction sizes and network conditions. The system ensures interoperability with stablecoins and CBDCs and is compatible with permissionless DeFi deployments.
► Cost and Efficiency Analysis: We conduct the comprehensive cost breakdown for FX swaps across major AMM designs, covering gas fees, LP fees, and price impact costs on both L1 and L2-L3 AMMs. Using Project Mariana as a benchmark, we show that the multi-AMM configuration consistently outperforms single-AMM setups.
► Simulation Framework and Open Implementation: We develop a modular simulation framework driven by historical FX data to evaluate multi-AMM FX exchanges. The framework includes models and numerical methods, such as the Newton-Raphson algorithm for price impact in Cryptoswap AMMs. All code and evaluation metrics are available in a public GitHub repository to support reproducibility and extension.22
With this work, we contribute to the ongoing design space exploration for compliant, scalable, and interoperable financial infrastructure. It bridges concepts from Layer-2 blockchain scaling, DeFi, and CBDC research, demonstrating that public blockchain security and private control can coexist through the modular composition of permissioned ZK rollups.
1.2. Paper Organization—The remainder of the paper is organized as follows. Section 2 introduces the foundations of L2 blockchain scaling and AMMs, followed by review of the related work and Project Mariana in Section 3. Section 4 describes the proposed multi-layer architecture using fractal scaling of ZK rollups for cross-border FX trading and settlement. Section 5 defines the cost metrics used to evaluate performance. Section 6 presents simulation-based results comparing the proposed architecture with L1-Mariana. Section 7 offers a broader discussion of design choices and system implications. Finally, Section 8 concludes the paper and outlines potential future directions.
This section introduces the core technologies underpinning the proposed cross-border FX settle-ment architecture: Layer-2 blockchain scaling, rollups, and Automated Market Makers (AMMs).
2.1. Layer-2 Scaling with Rollups—Blockchain networks face a fundamental trade-off between decentralization, security, and scalability—commonly referred to as the blockchain scalability trilemma.23 Ethereum, the dominant platform for DeFi, prioritizes decentralization and security, with limited scalability as a result. Permissioned blockchains are operated by a limited number of validators, resulting in centralization risks.
To address these constraints, two primary approaches have emerged: Layer-1 (L1) scaling and Layer-2 (L2) scaling. L1 scaling involves building new blockchains with novel consensus mechanisms,24 sharding,25 DAGs,26 or other techniques, often at the expense of decentralization and smart contract capabilities. In contrast, L2 scaling solutions preserve underlying L1 security guarantees while offloading computation and state updates outside of L1.16, 17 Examples include plasma, state channels, and rollups.
2.1.1. Rollups—Rollups are the most widely adopted form of non-custodial L2 scaling. They execute transactions outside of L1 and submit compressed transaction data or zero-knowledge proofs (ZKPs) to the underlying L1. The validity of rollup data is ensured by the L1, making it tamper-resistant. Figure 1 illustrates the general architecture of rollups.

Fig. 1. General architecture of a ZK rollup. The sequencer orders and batches transactions off-chain, while the verifier—a smart contract on the Layer-1 (L1) blockchain—validates submitted state transitions. ZK rollups additionally employ a prover to generate succinct cryptographic proofs of correctness. This model reduces L1 load while maintaining its security guarantees. |
2.1.2. Sequencers and Verifiers—Rollups rely on sequencers to order and bundle transac-tions and verifiers—smart contracts deployed on the L1—to validate state transitions. While current rollup implementations (e.g., Arbitrum, Optimism, zkSync, StarkNet) rely on centralized sequencers and provers, ongoing research is exploring their decentralization.27
2.1.3. Optimistic vs ZK Rollups—Optimistic rollups assume all transactions are valid unless proven otherwise via fraud proofs.28 They are simpler to implement and EVM-compatible, which have contributed to their faster adoption. However, withdrawal delays—typically a 7-day challenge period—are a known limitation. ZK rollups, on the other hand, generate cryptographic proofs off-chain and submit them to L1 for verification.29 This approach ensures fast finality and enhanced compression but at the cost of increased computational complexity.
2.1.4. Validium—Validium is a L2 scaling solution that, like ZK rollups, relies on ZKP to validate off-chain transactions. However, unlike ZK rollups, validiums store only validity proofs on-chain while keeping transaction data off-chain. This design reduces costs and improves scalability but introduces additional trust assumptions regarding data availability (DA). Typically, a separate data availability committee or trusted entity is responsible for ensuring that transaction data remains accessible and correct. Validiums offer high throughput and strong privacy guar-antees through ZKPs but are less decentralized than full ZK rollups due to their off-chain DA layer.
2.1.5. Comparison of Rollup Architectures—Table 1 presents a comparative overview of optimistic rollups, ZK rollups, and validium. The trade-offs between these approaches revolve around finality, data availability, latency, and compatibility. Optimistic rollups benefit from full EVM equivalence and easier integration with existing Ethereum protocols but suffer from delayed finality and higher latency due to fraud-proof windows. ZK rollups provide faster finality and stronger compression through validity proofs but are more complex to implement and not always fully EVM-compatible. Validiums offer the highest throughput by decoupling execution and data availability, yet they rely on off-chain data availability mechanisms, which may limit trust minimization.
The privacy benefits of ZK rollups depend on their implementation. While ZK proofs en-able strong privacy guarantees in principle, most current ZK rollups—such as zkSync Era and StarkNet—primarily use zero-knowledge proofs for validity, not privacy. In these implemen-tations, transaction data is still posted to calldata, which limits privacy benefits. Therefore, the “Strong” privacy support listed in Table 1 reflects potential rather than default behavior and assumes integration with privacy-preserving circuits or architectures such as ZKPs over encrypted state or shielded transactions. Validium and its privacy-enhanced variant Prividium can offer stronger privacy by keeping both transaction data and state off-chain, though at the cost of additional trust assumptions regarding data availability.
Table 1. Comparison of Optimistic Rollup, ZK Rollup, and Validium (a ZK-based scaling solution with off-chain data availability) |
Aspect | Optimistic Rollup | ZK Rollup | Validium |
EVM Compatibility | Equivalent | Varies | Varies |
Proof Type | Fraud proof | Validity proof | Validity proof |
Data Availability | On-chain | On-chain | Off-chain |
Security Anchor | Inherits L1 | Inherits L1 | L1 + DA assumptions |
Latency | High (challenge delay) | Low | Low |
Throughput | Medium | High | Very high |
Privacy Support | Limited | Strong (ZK) | Strong (ZK) |
Main Limitation | 7-day withdrawal period | Proving cost | DA trust assumptions |
Examples | Optimism, Arbitrum | zkSync, StarkNet | Elastic Chain, StarkEx |
2.1.6. Soft and Hard Finality—Rollups introduce two notions of finality: soft finality, when a transaction is confirmed at the L2 level by a sequencer, and hard finality, when the transaction batch is finalized, stored on the L1 and cannot be reverted.18 For optimistic rollups, soft finality is typically achieved within a few seconds—e.g., Optimism and Arbitrum report average soft confirmation times of around 2 seconds. However, due to the fraud-proof mechanism, hard finality is only reached after the challenge period expires, which is usually set to 7 days, even though the state update is confirmed on L1 within minutes. ZK rollups and validium offer 1–2 second soft finality with up to 1 day hard finality.
2.1.7. Fractal Scaling—Rollups can be recursively stacked to form fractal scaling architec-tures, where each layer processes transactions at higher throughput and lower cost. Though this increases latency for finality, it enables effectively unbounded scalability.
2.2. Terminology and Network Types—To avoid ambiguity, we standardize terminology for blockchain networks:
► Public blockchain: Permissionless networks like Bitcoin and Ethereum, where anyone can transact or participate in consensus.
► Private blockchain: Permissioned networks (e.g., Corda, Hyperledger) restricted to approved node operators or participants.
► Privacy-preserving blockchain: Networks that conceal transaction details from the public using cryptographic techniques such as ZKPs.
► L1 blockchain: A base network with its own consensus mechanism and infrastructure (e.g., Ethereum, Solana).
► L2 blockchain: A network that outsources consensus and settlement to an L1, improving scalability while inheriting L1 security (e.g., Arbitrum, zkSync).
► Rollup: A non-custodial L2 that executes transactions off-chain and posts compressed data or proofs to an L1 for settlement.
► Optimistic Rollup: A rollup that assumes all transactions are valid and only runs fraud proofs if challenged during a dispute window.
► ZK Rollup: A rollup that uses zero-knowledge proofs to validate the correctness of off-chain execution before posting to L1.
► Validium: A ZK-based L2 that stores validity proofs on L1 but keeps transaction data off-chain, trading verifiability for scalability.
► Sequencer: An off-chain component (of a rollup) responsible for ordering and bundling transactions into batches for submission to the rollup’s verifier.
► Based Rollup: A rollup design where Ethereum validators perform transaction sequencing directly, aligning L2 ordering with L1 consensus.
► EVM-compatible blockchain: A blockchain capable of running smart contracts written for the Ethereum Virtual Machine.
2.3. Automated Market Maker—Automated Market Makers (AMMs) are the backbone of DEXs, enabling users to swap tokens directly on-chain in a fully non-custodial manner. AMMs were introduced as an alternative to hosting central limit order books, which are commonly used by traditional exchanges but were initially too costly to implement on-chain and susceptible to security vulnerabilities.30
The core component of AMM-DEXs is the liquidity pool: a smart contract that holds reserves of the traded token pairs. Liquidity Providers (LPs) are users who deposit token reserves into these pools in exchange for a share of the trading fees generated by the protocol. Traders can then swap these tokens against the liquidity pool and an exchange swap rate is determined by an AMM based on the current token reserves.
Constant Function Market Makers (CFMM) are the most common form of AMMs. They are equipped with a reserve curve function \(F: \mathbb{R}^N_+ \rightarrow \mathbb{R}\) that maps \(N\) token reserves \(x_i\) to a fixed invariant (i.e., constant) \(L\). The short description of major CFMM types follows.21
2.3.1. Constant Product (CPMM)—The first AMM, introduced by Uniswap,20 is simple invariant that is used today to trade tokens with high volatility or new tokens which prices have not yet stabilized:
| $$\prod_{i=1}^N x_i = L$$ |
2.3.2. Constant Product with Concentrated Liquidity (CLMM)—Introduced by Uniswap v3 to increase the efficiency of TVL in the liquidity pool,31 it allows LPs to specify a price range \([p_a,p_b]\) to which LPs provide liquidity. Then, the trade invariant in this interval is
| $$\left( x_1+\frac{L}{\sqrt{p_b}} \right)\left(x_2+L\cdot \sqrt{p_a}\right) = L^2$$ | $$(1)$$ |
2.3.3. Stableswap Invariant—The disadvantage of CLMM is that LPs must constantly mon-itor and update the price range. Introduced with Curve v1,32 Stableswap Invariant automatically (using the constant A), concentrates liquidity about the current price. It is specifically designed for tokens that trade at a constant price to each other, such as two stablecoins pegged to 1 USD. The invariant is
| $$K\cdot D^{N-1}\cdot \sum\limits_{i=1}^N x_i +\prod\limits_{i=1}^N x_i = K\cdot D^N + \left(\frac{D}{N} \right)^N$$ | $$(2)$$ |
with
| $$K= \frac{A\cdot\prod_{i=1}x_i}{D^N}\cdot N^N,$$ |
where \(A\) and \(D\) are constants, and \(N\) is a number of tokens in the pool.
2.3.4. Cryptoswap Invariant—Curve v2 is an adaptation of the Stableswap invariant for any token pairs.33 It uses the same equation as (2), but with \(K\) dependent on constant parameters \(A\), \(\gamma\), and \(K_0\) as defined below
| $$K = A\cdot \underset{\text{ =: }K_0}{\underbrace{\frac{A\cdot\prod_{i=1}x_i}{D^N}\cdot N^N}} \cdot \frac{\gamma^2 }{(\gamma+1- K_0)^2}$$ | $$(3)$$ |
Uniswap was the first AMM-based DEX.20 Today, Curve v2 and Uniswap v3 are the dominant AMM-DEXs in DeFi in terms of trading volume.14, 31, 33 In 2025, Uniswap v4 was launched.34 However, it does not introduce a new AMM design. Instead, Uniswap v4 allows developers to implement hooks: external smart contracts that can integrate with liquidity pools and support custom AMM logic.34
3.1. Stabelcoins and CBDCs—Prior studies have examined the design and implementation of CBDCs across jurisdictions.8, 9, 11,35, 36 Chiu and Monnet analyze various models of digital ledger money, comparing stablecoins, tokenized deposits, and CBDCs.37 The macro-financial implications of CBDC adoption have also been studied. Cirelli and Nyffenegger, as well as Assenmacher et al., examine how CBDCs could impact banks with a focus on financial frictions and transmission mechanisms.38, 39
3.2. Layer-2s and Rollups—Surveys on L2 scaling solutions provide foundational insights into blockchain scalability, including the role of rollups.16, 17,40 Guo, Kreitem, and Moser offer a comprehensive review of public and private blockchain frameworks for CBDCs, highlighting key requirements such as Byzantine Fault Tolerance, immediate finality, and smart contract capabilities.41 The use of rollups for CBDC issuance is explored by Nyffenegger, proposing an intermediated model where the central bank collaborates with regulated entities offering tokenized deposits.42
3.3. AMMs—In the context of DeFi and AMM-based exchange mechanisms, Project Mariana demonstrates the feasibility of cross-border wCBDC exchange using single AMM instance (of Curve v2).12 In a related effort, Lipton and Sepp study the implicit transaction costs, such as slippage, when G10 stablecoins are exchanged using concentrated liquidity AMMs (of Uniswap v3).43 Ranaldo et al. empirically study the functioning of FX markets on public blockchains (permissionless AMMs and stablecoins) and note blockchain-specific frictions such as gas fees and native token volatility.44 Despite these contributions, relatively little attention has been paid to the modular composition of permissioned AMMs on scalable L2-L3 architectures for FX settlement—a gap this work aims to address.
3.4. Project Mariana—The specific focus of this work is on facilitating cross-border FX trad-ing and settlement. One notable proposal for such a solution is Project Mariana (L1-Mariana),12 initiated by BIS, the Swiss National Bank, the Bank of France, and the Monetary Authority of Singapore.

Fig. 2. Architecture of Project Mariana. A single AMM using the Cryptoswap invariant is deployed on a permissioned Layer-1 blockchain to facilitate cross-border swaps between EUR, CHF, and SGD wholesale CBDCs. |
Project Mariana implements AMM-DEX to facilitate FX swaps between tokenized versions of the Swiss Franc (CHF), Euro (EUR), and Singapore Dollar (SGD). It employs a Stableswap Invariant AMM, first introduced by Curve v2, which is widely recognized for its capital efficiency and ranks as the second-largest DEX by trading volume in permissionless DeFi on Ethereum.14 The three wholesale CBDCs are bridged from their respective domestic blockchain networks to a single execution environment, where they are pooled and traded using a 3-token Cryptoswap AMM, as shown in Fig. 2.
A key characteristic of Project Mariana is its use of wholesale CBDCs, meaning that only institutional participants with accounts at central banks can interact with the system. These institutions engage directly with the AMM deployed on a permissioned, EVM-compatible Layer-1 blockchain. The system is not accessible to retail users, and all smart contract interactions are confined to a closed network.
While Project Mariana successfully demonstrates the technical feasibility of AMM-based DEXs for wCBDC settlement, it also leaves open several important design questions. These include the selection of the underlying blockchain infrastructure—particularly with respect to scalability, decentralization, and finality guarantees—as well as the optimal structure of AMM pools (e.g., using 3-token versus 2-token configurations). This research extends the Mariana architecture by addressing these issues within a modular, multi-layer framework.
This section presents the architecture of a novel blockchain infrastructure for FX settlement using ZK rollup fractal scaling. The system is composed of a permissioned Layer-2 (L2) ZK-rollup that hosts multiple Layer-3 (L3) rollups, each running one or more specialized DeFi protocol. We adopt a multi-layer blockchain model, common in modern software systems, where each layer has a distinct function:
Layer 1 (L1) Blockchain: Serves as the data availability and consensus layer. It ensures cryptographic security via consensus mechanisms and decentralization.
Layer 2 (L2) Blockchain: Acts as a permissioned ZK-rollup responsible for routing, compliance enforcement, and integration with external digital assets such as CBDCs.
Layer 3 (L3) Blockchain: Hosts application-specific ZK rollups operating DeFi protocols (e.g., AMMs), each independently optimized for different transaction sizes, fee structures, or user types.

Fig. 3. Proposed L2-L3 ZK Rollup Architecture for FX Trading and Settlement. The system uses a permissioned ZK rollup (L2) anchored to a public L1 for compliance and routing, and multiple application-specific Layer-3 rollups (L3s) for executing trades. Each L3 runs its own AMM or DeFi protocol, competing for order flow. This modular design enhances scalability and extendability while maintaining regulatory control and settlement security. |
4.1. Layer 1: Trust and Security Layer—Layer 1 is responsible for anchoring zero-knowledge (ZK) proofs submitted by the L2 rollup, thereby ensuring the correctness and availability of off-chain state transitions. No raw transaction or user data is stored on this layer—only succinct cryptographic proofs—preserving user privacy and minimizing on-chain data overhead. When a public L1 blockchain such as Ethereum or Solana is used, the architecture additionally benefits from public verifiability: anyone can independently validate the correctness of the L2 state transitions without accessing detailed transaction data. Moreover, to tamper with any part of the L2 or L3 transaction history, an adversary would first have to compromise the security of the underlying L1 chain, which serves as the ultimate trust anchor for the entire system.
4.2. Layer 2: Integration and Routing Layer—Layer 2 (L2) is a permissioned ZK-rollup operated by a central institution (e.g., BIS). It performs the following key functions:
4.2.1. Privacy and Compliance via Selective Disclosure—All entities on L2 and L3 are permissioned via a privacy-preserving KYC system based on selective disclosure. Inspired by privacy pools,45 the architecture allows users to prove eligibility without revealing identity. Zero-knowledge proofs certify compliance (e.g., sanctions screening, institutional identity) without exposing transaction contents, balancing privacy and regulatory needs.46, 47
4.2.2. Asset Integration and Proof-of-Storage—CBDC tokens are minted directly on the L2 rollup, representing claims backed by central bank reserves rather than tokenized representations of CBDCs on domestic networks. When CBDCs are transferred from a national CBDC system to the L2, they are burned—rather than locked—on the originating chain. This prevents the risks associated with traditional bridging lock-and-mint mechanisms. To ensure the L2-issued tokens remain fully backed, we introduce a proof-of-storage model: the L2 operator regularly proves, using verifiable attestations, that the on-chain token supply is backed 1:1 by reserves held in central bank accounts.
Importantly, CBDCs are not bridged or re-minted at the L3 level. Instead, L3 rollup operators receive authenticated proofs of available balances from the L2. The L3s are responsible solely for executing the trading logic through DeFi protocols, while settlement occurs directly on the L2. This architecture ensures that CBDCs are minted and settled exclusively on L2, preserving central bank control and minimizing trust assumptions across layers.
4.2.3. Router and Execution Logic—A deterministic routing engine on the L2 layer evaluates current conditions on all registered L3 AMMs and forwards trades to the most cost-efficient venue. It optimizes for total execution cost, considering gas fees, LP fees, price impact, and access restrictions. This router acts on behalf of users but does not custody funds—it only forwards ZK-verified instructions.
4.3. Layer 3: Application-Specific Execution Layer—L3 rollups host execution environ-ments for DeFi protocols. In our system, each L3 runs one or more AMMs designed for FX swaps, or other DeFi protocols. These rollups are independently operated by external participants (e.g., financial institutions) who compete to provide the best execution.
Each rollups and DeFi protocols can be optimized for different use cases: e.g., large trades with minimal slippage (Stableswap), concentrated liquidity (CLMM), or frequent low-latency updates (custom rollups with faster blocktimes or alternative fee models). This heterogeneity allows innovation and competition within a modular framework.
4.3.1. Governance and Modularity—While the L2 rollup is centrally managed for compli-ance and routing, each L3 is governed independently. Operators can set their own fee structures, governance models, and protocol upgrades. This decentralized execution model enhances scala-bility, system resilience, and market efficiency.
4.3.2. Gas Fee Token—Both the L2 and L3 blockchains can implement a sovereign token for gas fee settlements—such as stablecoins or CBDCs—to decouple the system from the gas token of the underlying L1 chain. Importantly, the introduction of non-ETH token for gas fees on EVM-compatible blockchains would raise gas consumption of all transactions, since only the native ETH token is recognized by EVM and does not require access to the issuing smart contract during the execution.
4.3.3. User Access and Trade Flow—End-users interact via standard DeFi interfaces or L2 router. A user submits a trade intent to the L2 router, which evaluates all active L3s, selects the optimal AMM, and forwards the request. The selected L3 executes the trade, and the outcome is finalized on L2 and recorded on L1 via ZK proofs.
4.4. Comparison to Alternative Architectures—Project Mariana uses a single shared AMM across jurisdictions for FX swaps. Our architecture generalizes and extends this model by deploying heterogeneous AMM designs on separate L3 rollups. This enables optimization across market segments, reduces systemic congestion, and introduces execution-layer competition. A centralized L2 router ensures efficient coordination while preserving regulatory oversight.
Table 2 provides a structured comparison between our proposed L2–L3 rollup architecture and two alternatives: permissioned Layer-1 blockchains and public L1/L2 networks. The evaluation covers aspects such as settlement guarantees, data availability, compliance support, and interoperability.
4.4.1. Comparison to Permissioned Layer-1 Blockchain—While permissioned L1 block-chains offer full operational control, they require maintaining a dedicated validator set and governing upgrades internally. This results in higher infrastructure and governance overhead. Our proposed L2–L3 architecture reduces this burden by anchoring finality and data availability to a public L1, relying only on a sequencer and prover. Unlike permissioned L1s, the architec-ture provides tamper-proof settlement without compromising compliance: transaction flow is permissioned at the L2 level, but state transitions are cryptographically anchored and publicly auditable. This design enables institutions to enforce regulatory policies while minimizing the risk of centralized rollback or arbitrary asset seizure.
4.4.2. Comparison to Public Layer-1 or Layer-2 Blockchain—In contrast to public L1s (e.g., Ethereum) or general-purpose L2s (e.g., Arbitrum, Optimism), the proposed system inte-grates compliance and scalability through a permissioned rollup stack. Public L1s offer high decentralization but lack native support for selective disclosure or institutional KYC. Public L2s improve scalability but remain permissionless and may not satisfy regulatory demands. Our architecture bridges this gap: it retains public L1 security and interoperability while introducing permissioned sequencing and privacy-preserving compliance on L2. Moreover, specialized L3s enable transaction flow segregation and protocol customization without fragmenting settlement guarantees, offering a more modular and controlled alternative to public chains for regulated financial applications.
A key advantage of the L2-L3 design lies in its hybrid approach to data availability and privacy. Unlike traditional rollups that post full transaction calldata to L1, our system only posts succinct ZK proofs and minimal state commitments. This reduces on-chain data overhead and preserves user privacy, while maintaining cryptographic auditability and settlement finality on Ethereum. Sensitive transaction details and user identities remain off-chain but verifiable, enabling institutions to meet compliance requirements without compromising the integrity of the settlement process.
Furthermore, permissioned sequencing on the L2 enables enforcement of compliance policies, such as KYC/AML or transaction screening, at the entry point of the system. This selective access model is incompatible with public rollups, which are open by design. At the same time, by anchoring all proofs and state transitions to a public L1, our approach avoids the trust and censorship risks inherent in fully private or permissioned L1 chains. The result is a trust-minimized, interoperable infrastructure that satisfies both the performance and regulatory constraints of institutional finance.
Finally, the use of modular L3s allows for domain-specific execution environments, such as FX settlement, tokenized collateral management, or privacy-preserving lending. These L3s can be optimized for different AMM designs, privacy levels, or risk profiles, and are coordinated via the shared L2. This architectural modularity supports innovation and competition at the protocol level without requiring separate sovereign chains or sacrificing unified finality and auditability.
Table 2. Comparison of Proposed L2–L3 Architecture (Permissioned L2 and L3s on Public L1) with Permissioned L1 and Public L1/L2 Approaches |
Aspect | L2–L3 Proposed | Permissioned L1 | Public L1 or L2 |
Security Anchor | Public L1 consensus | Private validator set | Public L1 consensus |
Data Availability | On-chain proofs | Private access | Fully public |
Finality | Soft: seconds | Almost instant | Soft: seconds |
Infra Overhead | Sequencer + prover only | Operate full L1 infra | No operator role |
Decentralization | Via L1 consensus | Centralization risk | High |
Governance | Modular via L2/L3s | Fully internalized | Protocol or token |
Compliance | ZK KYC at L2 level | Full control | None or opt-in |
Interoperability | Native to public DeFi | Siloed or bridged | Native |
Auditability | Verifiable via L1 proofs | Controlled access | Public, on-chain state |
To evaluate the economic performance of cross-border FX trading on the proposed architecture, we adopt a cost-based framework. Following prior work,21, 48 the total cost of a swap transaction is decomposed into three components:
| $$\text{Total Cost} = \text{Gas Fee} + \text{Explicit DeFi Fee} + \text{Implicit DeFi Fee} $$ | $$(4)$$ |
5.1. Gas Fee on L2—Gas fees are paid to blockchain operators to process and finalize transactions. For rollup-based transactions, the gas fee includes two components:
L2 Execution Fee: The cost of executing the transaction on the rollup’s virtual machine.
L1 Data Availability Fee: The cost of posting transaction calldata to Ethereum L1 to ensure data availability and security.
The L2 execution fee itself consists of a base fee and a priority fee. The base fee is a protocol-determined minimum amount required to process a transaction, dynamically adjusted based on network demand. The priority fee, also known as a tip, is optionally added by the user to incentivize sequencers to prioritize the transaction in the next block.
| $$\text{Gas Fee on L2} = \underbrace{\text{Base Fee} + \text{Priority Fee}}_{\text{L2 Execution Fee}} + \text{L1 Data Fee}$$ |
5.2. Explicit DeFi Fees: LP Fees—DeFi protocols charge an explicit DeFi fee for facilitating token swaps. In AMM-DEXs, this LP fee, also called Swap or Trading Fee, is typically a fixed percentage \(f\) of the transaction amount \(\delta\), and is either fully or partially distributed to the liquidity providers:
| $$\text{LP Fee} = f \cdot \Delta$$ | $$(5)$$ |
5.3. Implicit DeFi Fees: Slippage and Price Impact—Implicit DeFi fees arise due to protocol or blockchain design characteristics. In AMMs, these include:
Price Impact: The deviation of the execution price from the quoted price, caused by the transaction’s size relative to the pool’s liquidity.
Block Slippage: The difference between the expected price and the actual execution price due to other transactions in the same block. This can be either positive or negative.
Combining all components, the total swap cost is:
| $$\begin{aligned}\text{Total Swap Cost} &= \text{Gas Fee} + \underbrace{\text{LP Fee}}_{\text{Explicit DeFi Fee}} + \underbrace{\text{Block Slippage} + \text{Price Impact}}_{\text{Implicit DeFi Fees}}\end{aligned}$$ | $$(6)$$ |
In this section, we present a historical simulation comparing the setup of the Mariana Project, hereafter referred to as L1 Mariana, with the architecture proposed in the previous sections, referred to as the L2-L3 Exchange. To ensure a fair comparison with the Mariana Project, we consider three tokens with values pegged to the Swiss Franc (CHF), Euro (EUR), and Singapore Dollar (SGD). Using historical FX rates, we back-test the costs of EUR-for-CHF swap transactions across a range of trade sizes, from as little as 1 EUR up to 1 million EUR.
6.1. Compared System Designs
6.1.1. L1 Mariana—As described in the original project report, this setup consists of a single liquidity pool implemented as a Stableswap-invariant AMM holding all three tokens. The pool is deployed on a L1 blockchain.
6.1.2. L2-L3 Exchange—Based on the architecture proposed in the previous sections, this setup, illustrated in Figure 4, includes:
L1 blockchain serving as the final settlement layer.
L2 blockchain (ZK rollup) acting as a router and data integrator.
Three Layer-3 ZK rollups, each operating a different AMM configuration:
To ensure comparability, we assume that the same total amount of liquidity is provided across L1 Mariana and the L2-L3 Exchange setup. However, in the L2-L3 exchange, the liquidity is fragmented across three independently operated L3 ZK rollups, each hosting a distinct AMM configuration:
Cryptoswap Invariant AMM with a single 3-token pool (CHF, EUR, SGD) — analogous to the L1 Mariana setup.
Cryptoswap Invariant AMM with two 2-token pools (CHF-EUR and EUR-SGD).
CLMM with two 2-token pools (CHF-EUR and EUR-SGD).

Fig. 4. Evaluated L2-L3 Architecture and AMM Configurations. The architecture hosts three L3 rollups: (i) a 3-token Cryptoswap AMM (analogous to L1 Mariana), (ii) two 2-token Cryptoswap AMMs, and (iii) two 2-token CLMMs. Despite liquidity fragmentation, the use of specialized AMMs and a centralized router on L2 improves cost efficiency over single-pool architectures. |
6.2. Historical FX Data and Pool Reconstruction—Our analysis uses historical FX rates for EUR-CHF and EUR-SGD over a three-year period (daily closing prices sourced from Yahoo Finance). We assume the presence of arbitrageurs who keep AMM exchange rates closely aligned with the FX market. This allows us to reconstruct the historical composition of AMM pools based on the prevailing FX rates at each time step.
6.3. Simulation Parameters
6.3.1. Liquidity Pools—Each system is provisioned with 100 million CHF in total liquidity. In the L1-Mariana setup, this amount is allocated to a single Cryptoswap-invariant pool containing all three tokens. In the L2-L3 Exchange, the total liquidity of 100 million CHF is evenly
distributed among three AMM operators, each deployed on a separate L3 rollup:
One 3-token Cryptoswap pool with 100/3 million CHF.
Two 2-token Cryptoswap pools (CHF-EUR and EUR-SGD), each with 100/6 million CHF.
Two 2-token CLMM pools (CHF-EUR and EUR-SGD), each with 100/6 million CHF.
6.3.2. AMM Parameters—To be compatible with L1-Mariana, for all Cryptoswap Invariant we set the amplification factor A = 50 and gamma to 10−8. For CLMM, liquidity is provided within a narrow price range defined by an α = 1.2 (i.e., ±20% around the spot rate), rebalanced daily.
6.3.3. LP Fees—All AMM liquidity pools charge a swap fee of 1 basis point (0.01%) of transaction amount.
6.3.4. Gas Costs—Based on data from the Mariana Project and recent literature, gas fees for swaps on Ethereum L1 have fluctuated between 5 EUR and 50 EUR.17, 18, 49 Gas costs on L2 are, on average, approximately 50 times lower. Accordingly, we model the gas costs as follows:
15 EUR per swap on L1 Mariana.
\(\frac{15}{50} = 0.3\) EUR per swap on the L2-L3 Exchange. These gas costs are composed equally of L2 execution fees and L1 data availability fees.
We do not model any priority gas fees or tips on L1, L2, or L3, and assume no block slippage impacting the swap transactions.
6.3.5. L2-L3 Router—We implement a routing mechanism that, for each swap transaction, simulates the total cost—comprising gas fees, price impact, and LP fees—across all available L3 AMMs. The router selects the AMM that offers the lowest total cost of a swap, as defined in Eq. 6. The methodology for price impact calculation follows.
6.4. Price Impact Methodology—Price impact calculations are specific to each type of AMM and its parameterization. For CPMM and CLMM exact formulas for price impact exists, but for certain AMMs such as Cryptoswap Invariant numerical approximation must be used to estimate it.
We consider 2-token and 3-token pools with tokens X, Y and Z. We denote the reserves of these tokens at time \(t\) in the liquidity pools by \(x_t\), \(y_t\), and \(z_t\), respectively. The spot rate X-Y is \(S_t\) and X-Z is \(P_t\). The token reserves \(x_0\), \(y_0\), \(z_0\) at the moment of the pool creation are set by:
| $$x_0 = N_0, y_0 =S_0 N_0, z_0= P_0 N_0$$ | $$(7)$$ |
where \(N_0\) is calculated bases on the initial TVL of the liquidity pool.
For a buy transaction of \(\delta y\) EUR in exchange for \(\delta x\) CHF at time \(t\) and the price impact is defined as:
| $$\text{PriceImpact}(\Delta x, \Delta y, S_t) = \frac{\frac{\Delta y}{\Delta x}}{S_t} - 1 $$ | $$(8)$$ |
6.4.1. Constant Product—In CPAMM, price impact can be expressed as:21
| $$\text{PriceImpact}(\Delta y, S_t) = \frac{\Delta y}{N_0 \cdot \sqrt{S_0 S_t}} $$ | $$(9)$$ |
6.4.2. Concentrated Liquidity—In CLMM, LPs can define the price range \([S_l, S_u]\), for which liquidity is provided. When the exchange price \(S_t\) moves outside the range \([S_l, S_u]\), LP does not earn any fees. For simplicity, we consider the range \([\frac{S_t}{\alpha}, S_t \alpha ]\), where \(\alpha > 1\). Price impact at CLMM can be expressed as:21
| $$\text{PriceImpact}(\Delta y, S_t) = \frac{\Delta y}{N_0 \cdot \sqrt{S_0 S_t}} \left(1 - \frac{1}{\sqrt{\alpha}}\right) $$ | $$(10)$$ |
6.4.3. Cryptoswap Invariant—For liquidity pools with more than 3 tokens, \(N>3\), the closed formula for price impact at Cryptoswap Invariant does not exist.50 Thus, a numerical approximation such as the Newton-Raphson method must be used. It is made up of two steps. First, given Eq. 7, the parameter D is calculated and, subsequently, \(\Delta x\) is found. Price impact calculated using Eq. 8.
6.4.4. Implementation1—In our simulation, the price imact for CLMMs are calculated based on Eq. 10 in the following subsection, and the Newton-Raphson method is applied for Cryptoswap Invariants, both for \(n=2\) and \(n=3\). The implementation of all methods is available in a public GitHub repository and was based on the smart contract code of Curve v2.22
6.5. Evaluation Results—This section presents the simulation outcomes comparing total swap costs between L1 Mariana and the proposed L2-L3 Exchange architecture across a range of transaction sizes.
6.5.1. Aggregate Cost Comparison—Figure 5 visualizes the difference in total swap costs between the two systems under varying transaction sizes and gas fee levels. Negative values indicate cost savings when using the L2-L3 Exchange. The results show that the L2-L3 Exchange outperforms L1 Mariana for both small (e.g., C10k) and large (e.g., C1M) trades. Notably, for gas fees exceeding 800 EUR, the L2-L3 Exchange offers lower costs across all transaction sizes. When gas fees are moderate (e.g., 15 EUR), L2-L3 becomes more efficient for transactions representing less than 0.01% or more than 0.7% of the total liquidity.

Fig. 5. Cost Savings from Using L2-L3 Exchange Over L1 Mariana. The figure plots the difference in total swap costs across transaction sizes and gas fee scenarios. The L2-L3 design consistently reduces costs for both small and large trades, particularly under high gas fee conditions, due to lower execution and slippage costs. |
6.5.2. Cost Component Breakdown—Figure 6 decomposes the total swap costs into gas fees, LP swap fees, and price impact. For small trades, L1 Mariana incurs high gas costs, while L2-L3 benefits from significantly reduced fees due to L2 execution. Conversely, for large trades, price impact dominates total costs—particularly in L1 Mariana.

Fig. 6. Decomposition of Swap Costs for L1 Mariana vs. L2-L3 Exchange. The L1 Mariana design incurs high gas fees for small trades and large price impact for high-volume trades. The L2-L3 design significantly lowers gas costs while dynamically routing trades to minimize price impact and LP fees. |
6.5.3. Price Impact Analysis and AMM Selection—Figure 7 compares price impact between L1 Mariana and the individual L3 AMMs (each with 33mn CHF liquidity). Despite liquidity fragmentation, the L2-L3 setup—with its use of multiple AMM designs—mitigates price impact more effectively for large transactions. L3s utilizing the Concentrated Liquidity Market Maker (CLMM) outperform others in this domain. The routing mechanism favors 2-token Cryptoswap pools for small trades, while the 3-token pool on L3 remains unused across all transaction sizes. This selective AMM utilization shows that architectural flexibility can offset liquidity fragmentation.

Fig. 7. Price Impact Comparison Across AMM Configurations. The L2-L3 architecture reduces price impact across all trade sizes by utilizing CLMMs for large trades and Cryptoswap AMMs for smaller ones. The 3-token pool is never selected by the routing logic, underscoring the importance of AMM specialization. |
6.5.4. Fee Statistics Summary—Table 3 reports the average total fees and their breakdown into gas, LP, and price impact components, for small (€10k), medium (€100k), and large (€1M) swap volumes. The values confirm that:
Gas costs dominate small trades on L1.
Price impact is the primary cost factor for large trades.
L2-L3 architecture reduces gas overhead while retaining competitive execution even under liquidity fragmentation.
Table 3. Fee Breakdown for EUR/CHF Swaps Across Architectures and Trade Sizes. Each fee component is shown both in absolute EUR terms and in basis points (bps) relative to the swap amount. The L2-L3 architecture consistently outperforms L1 Mariana across all trade sizes by reducing gas costs and mitigating price impact. Gas dominates costs for small trades on L1, while price impact becomes the key factor for large trades. |
Swap Amount | Total Fee | Gas Fee | LP Fee | Price Impact |
L1 Mariana | ||||
Small (€10k) | 16.0 (16bps) | 15.0 (15bps) | 1.0 (1bps) | 0.01 (0bps) |
Medium (€100k) | 26.1 (3bps) | 15.0 (2bps) | 10.0 (1bps) | 1.08 (0bps) |
Large (€1M) | 10,386.4 (104bps) | 15.0 (0bps) | 100.0 (1bps) | 10,271.4 (103bps) |
L2-L3 Exchange | ||||
Small (€10k) | 1.3 (1bps) | 0.3 (0bps) | 1.0 (1bps) | 0.02 (0bps) |
Medium (€100k) | 25.6 (3bps) | 0.3 (0bps) | 10.0 (1bps) | 15.3 (2bps) |
Large (€1M) | 5,445.3 (54bps) | 0.3 (0bps) | 100.0 (1bps) | 5,345.0 (52bps) |
6.5.5. Scalability with Liquidity—Figure 9 (appendix) simulates total swap costs under varying total liquidity conditions. The results suggest that even with fragmented liquidity across multiple L3s, the L2-L3 architecture remains cost-efficient relative to L1 Mariana, especially for large and small transactions.
7.1. Public vs Private Consensus Mechanisms—One fundamental design choice concerns the use of a permissioned Layer 1 (L1) blockchain versus deploying permissioned rollups on a public, decentralized L1. Private L1s offer complete control over governance, operations, and transaction execution. However, this also places full responsibility on the operators for main-taining consensus security, validator coordination, network liveness, and censorship resistance. Running a sovereign L1 entails establishing and managing a full validator set, coordinating upgrades, and ensuring global data availability—introducing considerable operational complexity and requiring significant infrastructure investment.
In contrast, operating a permissioned L2 rollup on a public L1 such as Ethereum is signifi-cantly less resource-intensive. The core requirements are limited to running two servers: one for the sequencer and one for the prover. Consensus, data availability, and settlement finality are inherited from the public L1, eliminating the need to build and maintain a validator network. Achieving decentralization on par with Ethereum or Solana at the L1 level would require deploy-ing and securing thousands (or even millions) of validators globally—a prohibitively expensive and complex undertaking for most institutions.
7.2. Security Guarantees and Immutability—Building on a public L1 also provides a strong neutrality and security anchor. Even if the sequencer in a permissioned L2 rollup can reorder or temporarily censor transactions, it cannot alter finalized history, seize assets, or revert executed transactions. These guarantees are enforced by the cryptographic integrity and economic security of the public L1.
By contrast, on private L1 blockchains, validator node operators can—intentionally or under coercion—retroactively modify the ledger, freeze accounts, or invalidate previously settled transactions. In permissioned rollups anchored to public L1s, such interventions are structurally limited: transaction data is publicly posted, rollup state is cryptographically verifiable, and any censorship is externally observable. This design ensures that even when central banks or institutions like the BIS operate the sequencers, core settlement guarantees remain externally auditable and tamper-resistant.
7.3. Finality refers to two essential operational metrics for financial infrastructure. Soft finality refers to the time between transaction submission and first confirmation, while hard finality refers to the point at which the transaction becomes immutable. A rollup architecture ensures hard finality is inherited from the base L1: once transaction data is posted to Ethereum, its settlement becomes irreversible after a defined number of blocks, typically 12–15 minutes. However, soft finality (around 0.2-1s) provides satisfactory user experience. In contrast, finality on private L1s is dependent on internally managed consensus rules and validator behavior, which may be subject to rollback or disputes in case of misalignment among operators.
7.4. Public Verifiability and Interoperability—Public L1 chains offer transparent auditability: independent third parties can validate the correctness of transaction execution and state transitions in L2 rollups by reading on-chain ZK proves. Public L1 also enable seamless interoperability between CBDCs and other tokenized assets, including stablecoins, tokenized financial instruments or other digital assets.
7.5. DAG-based L1—DAG-based Layer 1 scaling is a competing approach to Layer 2 solutions.26 Protocols like Sui and Hedera exemplify DAG-based L1s that aim to achieve higher throughput (TPS) than Ethereum. Hedera, in particular, targets institutional clients and incorporates a KYC process for selecting validators authorized to operate the network. This model represents a hybrid between public and permissioned Layer 1 architectures.
7.6. Decentralized and Shared Sequencers—Shared sequencers offer the potential to stream-line cross-rollup and cross-asset interoperability by coordinating transaction ordering across multiple rollups. Ongoing research and development efforts by teams such as Espresso, Astria, and others explore the implementation of shared sequencing layers to enhance composability and reduce latency in cross-domain interactions.
Another complementary approach is decentralized sequencing. Notably, based rollups, such as Taiko, delegate sequencing responsibilities to Ethereum validators, leveraging the existing L1 consensus for ordering transactions. This design enhances decentralization while aligning rollup security more closely with Ethereum’s base layer.
7.7. Future Work—Future research should investigate finality and TPS measurements in testbed environments, extend simulations to multi-hop swaps and FX triangulation paths, and analyze the economic sustainability of LP fee models under different market regimes. Prototypes based on production-ready rollup frameworks such as zkSync, Starknet, and Polygon zkEVM can accelerate implementation and validation.51–53
An important direction for future work involves modeling the required liquidity in the pools to ensure that slippage (i.e., price impact fees) remains within acceptable bounds for traders. Building on the findings of Gogol et al., who show that LP rewards tend to converge toward the risk-free rate (e.g., staking yield) across blockchains, one can derive the required liquidity levels based on expected trade volumes and average trade sizes.54 By calibrating the LP fee and adjusting the pool’s liquidity accordingly, it becomes possible to maintain trader incentives while ensuring sustainable yield for LPs. This modeling approach can guide optimal AMM design in institutional DeFi settings.
This paper presents a novel architecture for cross-border FX trading and settlement that leverages a hierarchical system of permissioned AMMs deployed on L3 rollups atop a permissioned L2, which itself settles on a public Layer 1 blockchain. This design combines the regulatory control and privacy guarantees of permissioned systems with the security, immutability, and neutrality offered by public blockchains such as Ethereum.
The core contribution of this work is the demonstration that a multi-AMM setup across fragmented L3 environments can outperform a single L1 AMM in terms of cost efficiency, even when total liquidity is split across multiple pools. Using a historical simulation based on real-world FX rates between the Swiss Franc (CHF), Euro (EUR), and Singapore Dollar (SGD), we compared the performance of the proposed L2-L3 Exchange architecture against the benchmark L1 Mariana configuration.
Our results show that the L2-L3 Exchange achieves lower total swap costs for both small and large transaction volumes. This advantage persists even under liquidity fragmentation and becomes especially pronounced during periods of high gas fees on L1. The cost savings stem primarily from reduced gas expenditures and, in the case of large transactions, from optimized slippage management through concentrated liquidity AMMs. The system’s integrated router further improves performance by dynamically selecting the most cost-effective AMM for each swap.
These findings support the viability of layered blockchain architectures for institutional DeFi applications. By utilizing permissioned ZK rollups on public L1s, such systems can maintain regulatory compliance and operational control while benefiting from strong settlement guarantees.
The first and second authors were affiliated with Matter Labs during part of the research period. This article is an independent academic work and reflects the authors’ personal views and opinions. It does not necessarily represent the views of any organization or employer. The content is intended for scholarly discussion only and should not be relied upon for strategic or commercial decision-making. The authors disclaim responsibility for any losses or damages arising from the use of this work.
1 Nakamoto, S. “Bitcoin: A Peer-to-Peer Electronic Cash System.” (2008) (accessed 3 December 2025)https://bitcoin.org/bitcoin.pdf.
2 Buterin, V. “Ethereum: A Next-Generation Smart Contract and Decentralized Application Platform.” (2014) (accessed 3 December 2025) https://ethereum.org/content/whitepaper/whitepaper-pdf/Ethereum_Whitepaper_-_Buterin_2014.pdf.
3Werner, S. M., Perez, D., Gudgeon, L., Klages-Mundt, A., Harz, D., Knottenbelt, W. J. “SoK: Decentralized Finance (DeFi).” arXiv (2021) (accessed 3 December 2025) http://arxiv.org/abs/2101.08778.
4 Schär, F. “Decentralized Finance: On Blockchain- and Smart Contract-based Financial Markets.” SSRN (2020) (accessed 3 December 2025) http://dx.doi.org/10.2139/ssrn.3571335.
5 Auer, R., Haslhofer, B., Kitzler, S., Saggese, P., Victor, F. “The Technology of Decentralized Finance (DeFi).” BIS Working Papers (2023) (accessed 3 December 2025) https://www.bis.org/publ/work1066.pdf.
6 Gogol, K., Killer, C., Schlosser, M., Boeck, T., Stiller, B., Tessone, C. “SoK: Decentralized Finance (DeFi) - Fundamentals, Taxonomy and Risks.” arXiv (2024) (accessed 3 December 2025) https://doi.org/10.48550/arXiv.2404.11281.
7 Ward, O., Rochemont, S. “Understanding Central Bank Digital Currencies (CBDC).” Institute and Faculty of Actuaries (2019) (accessed 3 December 2025) https://www.actuaries.org.uk/system/files/field/document/Understanding%20CBDCs%20Final%20-%20disc.pdf.
8 Náñez Alonso, S. L., Jorge-Vazquez, J., Reier Forradellas, R. F. “Central Banks Digital Currency: Detection of Optimal Countries for the Implementation of a CBDC and the Implication for Payment Industry Open Innovation.” Journal of Open Innovation: Technology, Market, and Complexity 7.1 https://doi.org/10.3390/joitmc7010072.
9 No Author. “Drex – Digital Brazilian Real.” (2023) (accessed 3 December 2025) https://www.bcb.gov.br/en/financialstability/drex_en.
10 Auer, R., Frost, J., Gambacorta, L., Monnet, C., Rice, T., Shin, H. S. “Central Bank Digital Currencies: Motives, Economic Implications and the Research Frontier.” BIS Working Papers (2021) (accessed 3 December 2025) https://www.bis.org/publ/work976.pdf.
11 Chaum, D., Grothoff, C., Moser, T. “How to Issue a Central Bank Digital Currency.” arXiv (2021) (accessed 3 December 2025) https://doi.org/10.48550/arXiv.2103.00254.
12 Auer, R., et al. “Project Mariana: Cross-Border Exchange of Wholesale CBDCs Using Automated Market-Makers.” BIS Innovation Hub (2023) (accessed 3 December 2025) https://www.bis.org/publ/othp75.pdf.
13 Lim, A., et al. “Project Guardian: Enabling Open and Interoperable Networks.” Monetary Au-thority of Singapore (2023) (accessed 3 December 2025) https://www.mas.gov.sg/publications/monographs-or-information-paper/2023/project-guardian-open-interoperable-networks.
14 No Author. “DeFiLlama.” DeFiLlama (accessed 3 December 2025) https://defillama.com/.
15 El Dimachki, M., et al. “Project Mandala: Streamlining Cross-Border Transaction Compliance.” BIS Innovation Hub (accessed 3 December 2025) https://www.bis.org/publ/othp87.htm.
16 Sguanci, C., Spatafora, R., Vergani, A. M. “Layer 2 Blockchain Scaling: A Survey.” arXiv (2021) (accessed 3 December 2025) https://doi.org/10.48550/arXiv.2107.10881.
17 Gangwal, A., Gangavalli, H. R., Thirupathi, A. “A Survey of Layer-Two Blockchain Protocols.” arXiv (2022) (accessed 3 December 2025) https://doi.org/10.48550/arXiv.2204.08032.
18 Yee, B., Song, D., McCorry, P., Buckland, C. “Shades of Finality and Layer 2 Scaling.” arXiv (2022) (accessed 3 December 2025) https://doi.org/10.48550/arXiv.2201.07920.
19 Thibault, L. T., Sarry, T., Hafid, A. S. “Blockchain Scaling Using Rollups: A Comprehensive Survey.” IEEE Access 10 93039–93054 (2022) https://doi.org/10.1109/ACCESS.2022.3200051.
20 Adams, H., Zinsmeister, N., Robinson, D. “Uniswap v2 Core.” Uniswap (2020) (accessed 3 December 2025) https://app.uniswap.org/whitepaper.pdf.
21 Xu, J., Paruch, K., Cousaert, S., Feng, Y. “SoK: Decentralized Exchanges (DEX) with Automated Mar-ket Maker (AMM) Protocols.” ACM Computing Surveys 55.11 1–50 (2023) https://doi.org/10.1145%2F3570639.
22 Gogol, K. “Github Repository, CBDCs in AMMs.” Github (accessed 3 December 2025) https://github.com/kgogol/CBDCinAMMs.
23 Werth, J., Berenjestanaki, M. H., Barzegar, H. R., El Ioini, N., Pahl, C. “A Review of Blockchain Platforms Based on the Scalability, Security and Decentralization Trilemma.” In J. Filipe, M. Smiałek, A. Brodsky, S. Hammoudi (Eds.), Proceedings of the 25th International Conference on Enterprise Information Systems (ICEIS 2023) Volume 1 146–155 (2023) https://doi.org/10.5220/0011837200003467.
24 Lashkari, B., Musilek, P. “A Comprehensive Review of Blockchain Consensus Mechanisms.” IEEE Access 9 43620–43652 (2021) https://doi.org/10.1109/ACCESS.2021.3065880.
25 Wang, G., Shi, Z. J., Nixon, M., Han, S. “SoK: Sharding on Blockchain.” In AFT’19 Proceedings of the 1st ACM Conference on Advances in Financial Technologies 41–61 (2019) https://doi.org/10.1145/3318041.3355457.
26 Wang, Q., Yu, J., Chen, S., Xiang, Y. “SoK: DAG-based Blockchain Systems.” ACM Computing Surveys 55.12 1–38 (2023) https://doi.org/10.1145/3576899.
27 Chaliasos, S., Firsov, D., Livshits, B. “Towards a Formal Foundation for ZK Rollups.” In CCS ’25: Proceed-ings of the 2025 ACM SIGSAC Conference on Computer and Communications Security 2714–2728 (2025) https://doi.org/10.1145/3719027.3765115.
28 Kalodner, H., Goldfeder, S., Chen, X., Weinberg, S. M., Felten, E. W. “Arbitrum: Scalable, Private Smart Contracts.” In SEC’18: Proceedings of the 27th USENIX Conference on Security Symposium 1353–1370 (2018) https://dl.acm.org/doi/10.5555/3277203.3277305.
29 Chaliasos, S., Reif, I., Torralba-Agell, A., Ernstberger, J., Kattis, A., Livshits, B. “Analyzing and Bench-marking ZK-Rollups.” Cryptology ePrint Archive (2024) Paper 2024/889 (accessed 4 December 2025) https://eprint.iacr.org/2024/889.
30 Jensen, J., von Wachter, V., Ross, O. “An Introduction to Decentralized Finance (DeFi).” Complex Systems Informatics and Modeling Quarterly 26 46–54 (2021) https://doi.org/10.7250/csimq.2021-26.03.
31 Adams, H., Zinsmeister, N., Moody, S., Keefer, R., Robinson, D. “Uniswap v3 Core.” Uniswap (2021) (accessed 4 December 2025) https://app.uniswap.org/whitepaper-v3.pdf.
32 Egorov, M. “StableSwap—Efficient Mechanism for Stablecoin Liquidity.” (2019) (accessed 4 December 2025) https://berkeley-defi.github.io/assets/material/StableSwap.pdf.
33 Egorov, M. “Curve Whitepaper: Automatic market-making with dynamic peg.” Curve (2021) (accessed 4 December 2025) https://docs.curve.finance/assets/pdf/whitepaper_cryptoswap.pdf.
34 Adams, H., et al. “Unichain.” Uniswap Labs (2024) (accessed 4 December 2025) https://docs.unichain.org/whitepaper.pdf.
35 Chu, Y., Lee, J., Kim, S., Kim, H., Yoon, Y., Chung, H. “Review of Offline Payment Function of CBDC Considering Security Requirements.” Applied Sciences 12.9 https://doi.org/10.3390/app12094488.
36 Morales-Resendiz, R., et al. “Implementing a Retail CBDC: Lessons Earned and Key Insights.” Latin American Journal of Central Banking 2.1 <100022 (2021) https://doi.org/10.1016/j.latcb.2021.100022.
37 Chiu, J., Monnet, C. “Public and Private Money Creation for Distributed Ledgers: Stablecoins, Tokenized Deposits, or Central Bank Digital Currencies?” Bank of Canada (2024) Staff Working Paper 2024-35 (accessed 4 December 2025) https://doi.org/10.34989/swp-2024-35.
38 Cirelli, F., Nyffenegger, R. “CBDC and Bank Lending: The Role of Financial Frictions.” SSRN (2023) (accessed 4 December 2025) https://dx.doi.org/10.2139/ssrn.4678281.
39 Assenmacher, K., Minesso Ferrari, M., Mehl, A., Pagliari, M. S. “Managing the Transition to Central Bank Digital Currency.” De Nederlandsche Bank (2024) Working Paper No. 803 (accessed 4 December 2025) https://dx.doi.org/10.2139/ssrn.4727607.
40 Gorzny, J., Derka, M. “A Rollup Comparison Framework.” arXiv (2024) (accessed 4 December 2025) https://doi.org/10.48550/arXiv.2404.16150.
41 Guo, S., Kreitem, J., Moser, T. “DLT Options for CBDC.” Journal of Central Banking Theory and Practice 13.1 57–88 (2024) https://doi.org/10.2478/jcbtp-2024-0004.
42 Nyffenegger, R. “A Proposal for a Layer-2 CBDC on a Rollup.” Digital Finance 6 543–571 (2024) https://doi.org/10.1007/s42521-024-00115-2.
43 Lipton, A., Sepp, A. “Automated Market-Making for Fiat Currencies.” arXiv (2021) (accessed 4 December 2025) https://doi.org/10.48550/arXiv.2109.12196.
44 Ranaldo, A., Viswanath-Natraj, G., Wang, J. “Blockchain Currency Markets.” Swiss Finance Institute (2024) Research Paper No. 24-29 (accessed 4 December 2025) https://dx.doi.org/10.2139/ssrn.4800556.
45 Buterin, V., Illum, J., Nadler, M., Schär, F., Soleimani, A. “Blockchain Privacy and Regulatory Compliance: Towards a Practical Equilibrium.” SSRN (2023) (accessed 4 December 2025) https://dx.doi.org/10.2139/ssrn.4563364.
46 Fiege, U., Fiat, A., Shamir, A. “Zero-Knowledge Proofs of Identity.” Journal of Cryptology 1 77–94 (1988) https://doi.org/10.1007/BF02351717.
47 Rajput, V. U. “Research on Know Your Customer (KYC).” International Journal of Scientific and Research Publications 3.7 541–546 (2013) http://www.ijsrp.org/research-paper-0713.php?rp=P191526.
48 Gudgeon, L., Werner, S. M., Perez, D., Knottenbelt, W. J. “DeFi Protocols for Loanable Funds: Interest Rates, Liquidity and Market Efficiency.” arXiv (2020) (accessed 4 December 2025) https://doi.org/10.48550/arXiv.2006.13922.
49 No Author. “Etherscan.” (2023) (accessed 4 December 2025) https://etherscan.io/.
50 Tiruviluamala, N., Port, A., Lewis, E. “A General Framework for Impermanent Loss in Automated Market Makers.” arXiv (2022) https://doi.org/10.48550/arXiv.2203.11352.
51 No Author. “ZKsync.” ZKsync (2022) (accessed 4 December 2025) https://zksync.io/.
52 No Author. “Starknet.” StarkWare (2022) (accessed 4 December 2025) https://starkware.co/starknet/.
53 No Author. “Polygon.” Polygon (2023) (accessed 4 December 2025) https://polygon.technology/.
54 Gogol, K., Schneider, M., Tessone, C., Livshits, B. “Liquidity Fragmentation or Optimization? Analyzing Automated Market Makers Across Ethereum and Rollups.” arXiv (2025) (accessed 4 December 2025) https://doi.org/10.48550/arXiv.2410.10324.

Fig. 8. Back-testing results for swap costs across three trade sizes (10k, 100k, and 1 million EUR), assuming a gas fee of 15 EUR and 100 million EUR TVL. The L2-L3 Exchange architecture consistently outperforms the L1 Mariana setup for both small and large trades, demonstrating lower total costs due to reduced gas fees and optimized AMM routing despite liquidity fragmentation. |

Fig. 9. Sensitivity of L2-L3 Cost Advantage to Liquidity Levels. Contour plots show the percent cost reduction of L2-L3 over L1 Mariana across various Total Value Locked (TVL) scenarios and transaction sizes. Results confirm the robustness of the L2-L3 advantage, even under liquidity fragmentation. |
