Cointime

Download App
iOS & Android

Building on the SCP Paradigm, DEX Can Achieve AMM Freedom

Validated Project

💡 Web3 is booming, and Arweave is becoming a popular infrastructure choice for developers. PermaDAO is a community where everyone can contribute to the Arweave ecosystem. It's a place to propose and tackle tasks related to Arweave, with the support and feedback of the entire community. Join PermaDAO and help shape Web3!

Author: Kyle @ Contributor of PermaDAO


Introduction to DEX and AMM

DEX (Decentralized Exchange) is a trading platform that operates free from centralized financial institutions, providing trading services through smart contracts and blockchain technology. Unlike centralized exchanges, DEX does not rely on order books to match trades but directly exchanges assets from liquidity pools using the AMM algorithm.

AMM, an acronym for Automated Market Maker, is an algorithm-driven smart contract system that provides liquidity for DEX's token assets, allowing users to trade directly without waiting for matching buy and sell orders.

  

Advantages of AMM Boosting DEX

The application of AMM in DEX brings more open and flexible asset trading. DEX offers advantages over centralized exchanges, including:

  • Decentralization and Security: DEX operates without the involvement of centralized financial institutions, reducing the risk of single points of failure and enhancing security.
  • Trustless Third Parties: Users in DEX do not need to trust third-party intermediaries; all transactions are executed through smart contracts, ensuring transparency and verifiability.
  • Privacy Protection: DEX does not require users to undergo KYC; involvement only requires an encrypted wallet, protecting individual privacy.
  • Unrestricted by Time and Location: DEX operates without geographical limitations, allowing users to trade anytime and anywhere with an internet connection.

  

Classic AMM Models

Constant Product Market Maker (CPMM) Model

The CPMM model, initially proposed by Vitalik and introduced by Hayden Adams in the Uniswap protocol (both V1 and V2), utilizes the simple formula x * y = k, where k is a constant, and x and y represent the quantities of two tokens in the liquidity pool, with their product always equal to k.

CPMM model's liquidity is relatively dispersed, resulting in increased slippage and vulnerability to frontrunning attacks. Impermanent loss and MEV are significant challenges associated with this model.

Concentrated Liquidity Market Maker (CLMM) Model

Uniswap introduced the CLMM model during the upgrade to Uniswap V3. It builds upon the Constant Product Market Maker (CPMM) model, enhancing the constant product formula (x * y = k). CLMM allows liquidity providers to offer liquidity within a custom price range, enhancing capital utilization.

Compared to the CPMM model of Uniswap V2, the CLMM model performs better under the same liquidity funds, with deeper trading depth and reduced slippage. Additionally, setting a narrower price range around $1 can make Uniswap V3 suitable for stablecoin trading scenarios. However, the CLMM model still cannot solve issues like MEV and front-running attacks, and impermanent loss remains relatively high.

Discrete Liquidity Automated Market Maker (DLAMM) Model

The DLAMM model, introduced by iZUMi Finance is distinctly different from CPMM and CLMM. CPMM and CLMM models are continuous curves, making liquidity continuous. In contrast, the DLAMM model consists of discrete points, resulting in discrete liquidity.

Specifically, DLAMM allows liquidity providers to concentrate liquidity at specific price points, similar to limit orders, further increasing capital utilization and reducing transaction slippage. However, due to the nature of limit orders, trades must occur at the set price points, leading to a lack of flexibility.

Proactive Market Maker (PMM) Mode

The PMM model, introduced by DODO, adopts a strategy of automatically adjusting liquidity by aggregating it around the market price, leveraging oracle price feeds.

PMM completely changes the mainstream AMM algorithm structure, using a dynamically adjustable algorithm that effectively increases capital utilization, reduces trading slippage, and provides traders with more favorable prices. However, PMM's reliance on oracle feeds poses challenges.

  

Permaswap: Cross-Chain DEX Supporting Multiple AMM Algorithms

Permaswap is the first real-time and cross-chain DEX in the Arweave ecosystem, built on the everPay protocol. It’s features such as zero gas fees, zero frontrunning slippage, and 100% permanent data storage, providing a more efficient and secure solution for digital asset trading.

Due to the immutability of the blockchain, once a smart contract is deployed on the chain, it cannot be modified. If updates or improvements to the smart contract are desired, a new smart contract must be created for the upgrade. For a DEX, continuous improvement of its AMM model is necessary to meet the evolving market demands. However, achieving a perfect AMM model to cover all needs and solve all problems is challenging.

Nevertheless, Permaswap is a DEX with aggregator-like flexibility, supporting multiple AMM algorithms to provide users with the best prices. How is this achieved? Thanks to its adoption of a new development paradigm—SCP, which is vastly different from the traditional construction path of blockchain projects.

Storage Consensus Paradigm (SCP)

Storage Consensus Paradigm (SCP), introduced by everVision, is the next-generation blockchain application development paradigm. Unlike traditional blockchains, SCP separates computation and storage, meaning on-chain storage and off-chain computation. The blockchain (Arweave) is responsible for storage, while off-chain servers handle computation and store all generated states.

Specifically, SCP adopts a lazy evaluation strategy, with off-chain servers responsible for smart contract computation and state updates, storing them on the blockchain for future verification. Here, the blockchain serves as the data availability layer, ensuring data immutability and traceability for easily verifiable data. Anyone can verify the results of a contract to ensure final consistency. Thus, applications built on the SCP paradigm exhibit high performance and availability comparable to Web2, while maintaining the transparency and trustworthiness of blockchain.

Advantages of SCP

For decentralized exchange Permaswap, under the SCP paradigm, the configuration of smart contracts and algorithms can be more flexible, allowing support for various types of AMM models for LP nodes to choose as needed.

Certainly, Permaswap under the SCP paradigm has other significant advantages:

Image Description: On-chain AMM vs. Permaswap

  • High Performance: Transaction processing is handled by traditional servers, with the TPS limit determined by server performance and application technical architecture.
  • Cost-Effective: Utilizes bundle technology to bundle multiple transaction data into one on-chain transaction, theoretically processing one million transactions for only $1.
  • Real-time Trading: Dedicated nodes handle transactions without waiting for block confirmation, providing an experience close to traditional payment methods.
  • Security: Adopts a self-custody asset form, with keys and assets held by LP nodes, reducing systemic risks.
  • No MEV: Uses deterministic bundle transactions, eliminating the need for slippage settings and avoiding transaction sequencing delays.

   

Permaswap Liquidity Mining

Built on the SCP paradigm, Permaswap can flexibly construct and adopt AMM models. As Permaswap is currently in beta, it temporarily adopts the constant product AMM model with a specific price range, similar to Uniswap V3's CLMM model. Users can choose to provide liquidity without limiting the price range or choose a specific price range during liquidity addition. As the Permaswap network grows, more diverse AMM models will be introduced, gradually becoming a DEX with multiple AMM models.

In the process of Permaswap liquidity mining, two crucial roles in the network are involved: Router nodes and LP nodes. According to the whitepaper, once the Permaswap network enters the Flood stage, individuals and institutions can become Router nodes or LP nodes by staking PSN tokens (not yet issued).

The main functions of the two nodes are as follows:

  • Router nodes serve as the central hub of the Permaswap network, generating trade orders and handling LP quote information, which, upon user confirmation, are signed and sent to everPay for execution.
  • LP nodes act as liquidity providers for Permaswap, registering on the Router and signing orders, offering automatic quoting services for market-making transactions.

LP nodes can freely choose specific AMM models and inject funds to provide liquidity. Router nodes, based on user transaction demands, generate optimal prices by combining information from connected LP nodes on their own Router or LP nodes from other Router nodes.

Upon completion of a transaction, Router nodes earn transaction fees, and LP nodes receive liquidity mining incentives. However, if there is malicious behavior by either the Router or LP nodes, their staked PSN tokens will be confiscated, and if the token quantity falls below the threshold, the network will forcefully remove them.

Permaswap is currently open to everyone, allowing the deployment of LP nodes for market-making without the need to stake any collateral. Permaswap has ten liquidity pools available for liquidity addition, including USDC/USDT, AR/USDC, AR/ETH, ETH/USDC, AR/ARDRIVE, USDC/ACNH, AR/ANS, AR/U, AR/STAMP, ETH/MAP.

  

For information on deploying LP nodes and adding liquidity on Permaswap, refer to the Permaswap Guide.  

Permaswap Guide: https://www.notion.so/485cd6623f954902b61775e4f1a86717?pvs=25

  

In the future, Permaswap will launch the native token PSN for liquidity mining incentives, voting governance, node entry collateral, etc. According to the plan, Permaswap will continue to list new assets, providing liquidity for the Arweave ecosystem and assets from multiple blockchains. With more Router nodes and LP nodes joining, Permaswap will gradually form a robust and resilient ecosystem.


  🔗 More about PermaDAO:Website | Twitter | Telegram | Discord | Medium | Youtube

Comments

All Comments

Recommended for you

  • American Bitcoin's Bitcoin reserves have increased by approximately 623 BTC in the past 7 days, bringing its current holdings to 4941 BTC.

    Emmett Gallic, a blockchain analyst who previously disclosed and analyzed the "1011 insider whale," posted on the X platform revealing updated data on the Bitcoin reserves of American Bitcoin, a crypto mining company supported by the Trump family. In the past seven days, they increased their holdings by about 623 BTC, of which approximately 80 BTC came from mining income and 542 BTC from strategic acquisitions in the open market. Currently, their total Bitcoin holdings have risen to 4,941 BTC, with a current market value of about 450 million USD.

  • The US spot Ethereum ETF saw a net outflow of $19.4 million yesterday.

    according to TraderT monitoring, the US spot Ethereum ETF had a net outflow of 19.4 million USD yesterday.

  • Listed companies, governments, ETFs, and exchanges collectively hold 5.94 million Bitcoins, representing 29.8% of the circulating supply.

    Glassnode analyzed the holdings of major types of Bitcoin holders as follows: Listed companies: about 1.07 million bitcoins, government agencies: about 620,000 bitcoins, US spot ETFs: about 1.31 million bitcoins, exchanges: about 2.94 million bitcoins. These institutions collectively hold about 5.94 million bitcoins, accounting for approximately 29.8% of the circulating supply, highlighting the trend of liquidity increasingly concentrating in institutions and custodians.

  • The Bank of Japan is reportedly planning further interest rate hikes; some officials believe the neutral interest rate will be higher than 1%.

    according to insiders, Bank of Japan officials believe that before the current rate hike cycle ends, interest rates are likely to rise above 0.75%, indicating that there may be more rate hikes after next week's increase. These insiders said that officials believe that even if rates rise to 0.75%, the Bank of Japan has not yet reached the neutral interest rate level. Some officials already consider 1% to still be below the neutral interest rate level. Insiders stated that even if the Bank of Japan updates its neutral rate estimates based on the latest data, it currently does not believe that this range will significantly narrow. Currently, the Bank of Japan's estimate for the nominal neutral interest rate range is about 1% to 2.5%. Insiders said that Bank of Japan officials also believe there may be errors in the upper and lower limits of this range itself. (Golden Ten)

  • OKX: Platform users can earn up to 4.10% annualized return by holding USDG.

    According to the official announcement, from 00:00 on December 11, 2025 to 00:00 on January 11, 2026 (UTC+8), users holding USDG in their OKX funding, trading, and lending accounts can automatically earn an annualized yield of up to 4.10% provided by the OKX platform, with the ability to withdraw or use it at any time, allowing both trading and wealth management simultaneously. Users can check their earnings anytime through the OKX APP (version 6.136.10 and above) - Assets - by clicking on USDG. Moving forward, the platform will continue to expand the application of USDG in more trading and wealth management scenarios.

  • The Federal Reserve will begin its Reserve Management Purchase (RMP) program today, purchasing $40 billion in Treasury bonds per month.

     according to the Federal Reserve Open Market Committee's decision on December 10, the Federal Reserve will start implementing the Reserve Management Purchase (RMP) program from December 12, purchasing a total of $40 billion in short-term Treasury securities in the secondary market.

  • Bitcoin treasury company Strategy's daily transaction volume has now surpassed that of payment giant Visa.

    according to market sources: the daily trading volume of Bitcoin treasury company Strategy (MSTR) has now surpassed the payment giant Visa.

  • The US spot Bitcoin ETF saw a net outflow of $78.35 million yesterday.

    according to Trader T's monitoring, the US spot Bitcoin ETF had a net outflow of $78.35 million yesterday.

  • JPMorgan Chase issues Galaxy short-term bonds on Solana network

     JPMorgan arranged and created, distributed, and settled a short-term bond on the Solana blockchain for Galaxy Digital Holdings LP, as part of efforts to enhance financial market efficiency using underlying cryptocurrency technology.

  • HSBC expects the Federal Reserve to refrain from cutting interest rates for the next two years.

    HSBC Securities predicts the Federal Reserve will maintain interest rates stable at the 3.5%-3.75% range set on Wednesday for the next two years. Previously, Federal Reserve policymakers lowered rates by 25 basis points with a split vote. The institution's U.S. economist Ryan Wang pointed out in a report on December 10 that Federal Reserve Chairman Jerome Powell was "open to the question of whether and when to further cut rates at next year's FOMC press conference." "We believe the FOMC will keep the federal funds rate target range unchanged at 3.50%-3.75% throughout 2026 and 2027, but as the economy evolves, as in the past, it is always necessary to pay close attention to the significant two-way risks facing this outlook."