How to Solana — Chapter 2: Overview of DEX & AMM

Not financial advice.
1. Primitive I: Decentralized Exchange — DEX

Objectives: Global Access to Markets | Non-Custodial Commerce | Transparent & Trustless Trade

The Decentralized Exchange (DEX), is a novel form of permissionless commerce that has come into prominence, over recent
..years. Primarily, DEXes enable traders to transact across financial markets, without relinquishing ownership of their funds. During the primordial iterations of the DEX financial primitive (2017–2018), decentralized exchanges exclusively operated through standalone buy/sell..
..orderbooks. Often due to insufficient liquidity and a primitive UI/UX experience, these orderbooks were not sufficiently practical to satisfy the functional demands of mainstream traders & investors.

As a nascent financial primitive, DEXes lagged behind, in both adoption and..
..disruption, for years after inception. Most traders simply lacked any practical thesis for conducting transactions on anything other than a centralized exchange (CEX), therefore the broader ecosystem was relegated to only a few thousand enthusiasts & early..
..adopters . However, after years of quiet development, an innovative alternative to the standalone orderbook model, known as Automated Market Makers (AMMs) emerged as the second fundamental primitive for practical, permissionless commerce.
2. Primitive II: Automated Market Makers — AMM

Objectives: 24/7 Liquidity | Stable Buy & Sell Spreads | Transparent & Universal MM Incentives

The scope of Uniswap Labs’ first working AMM model (K = x*y) cannot be understated in the history of DeFi, as the working application..
..of liquidity pools instantaneously made standalone orderbook DEXes, on both Ethereum (Etherdelta, IDEX) and other chains (Bitshares, Waves, Cryptobridge) obsolete, almost overnight. Uniswap was a truly revolutionary addition to the future of DeFi, and demonstrated the..
..legitimacy and potential of the DEX/AMM financial primitive as the bedrock for transparent, trustless commerce. Solana’s current DEX/AMM infrastructure and prospective DeFi product suite stands on the shoulders of invaluable contributions by the Ethereum Foundation, Uniswap..
..Labs, & the greater DeFi community.

Solana’s high-throughput, low-latency, processing capabilities provide the means for a vast suite of sophisticated AMM applications for decentralized operations, such as high-frequency trading, central limit order..
..books(CLOB), derivatives, cloud computing, and cloud storage. These financial instruments and Web3 interfaces are rapidly being built on Solana, with seamless scaling to support over 1 billion user accounts on a single state machine.
3. Solana DEX/AMM Suite I: Raydium

Raydium is an on-chain order book and automated market maker (AMM) that enables lightning-fast trades, shared liquidity and new features for earning yield. Initially offered as a standalone DEX/AMM product, Raydium offers a suite of services.. its users such as launchpads, accelerators, and yield farming.

*Note: Currently, there are two supported operations for trading on Raydium. Users can transact through the Orderbook (Trading tab) or..
..through the AMM (Swap tab).

How to use Raydium:
3.1. Swapping:

3.1.1. Access Raydium via, and click on the Swap tab.
3.1.2. As one can see from the image above, Raydium will ask users to connect a wallet before conducting a token swap. Click Connect on the top right button above, it will pop out a menu to select your wallet.
3.1.3. Select a desired wallet and connect to Raydium. Once the tab has recorded a public address, the user now has access to Raydium’s entire product suite.

Note: We recommend using either Phantom or Sollet for Web3 integration , as they are currently the most supported and..
..adopted within the greater Solana ecosystem.

3.1.4. Select the token to be sold in the top slot, and the token to be bought in the bottom slot.
3.1.5. Insert a desired qty, and observe the terms of the “Minimum Received” & the “Price Impact” vals.

3.1.6. After conf. that the user’s selected slippage tolerance < price impact, the swap will execute once acted upon. If all displayed conditions are acceptable, click swap.
3.2. Limit Order Trading

Pre-specified price limit orders are another trading operation supported by the Raydium DEX/AMM, with real-time price feed updates from Serum’s underlying orderbook data.
3.2.1. Click the Trading tab on the Raydium dashboard to access Limit Orders for both buy & sell side operations.

Note: The orderbook feed will display critical data such as bid/ask spreads, real-time order flow updates, and recent on-chain trades.
3.2.2. Select a supported trading pair for an asset that the user has already deposited and settled on the Raydium interface. If the trading pair is not listed on the front-end, it is also possible to add a custom market for existing Raydium.
3.2.3. Insert desired limit order price (less than highest bid and greater than highest ask).

3.2.4. Insert desired size as either a positive real number value or as a percentage of relevant asset holdings.
Note: In this example, a limit buy of 10 SOL at $170 you be executed if/when SOL drops to $170, and should not be made above a market price of $170/SOL.
3.2.5. Click LIMIT BUY SOL and approve the transaction on your web wallet. That’s it. Repeat the same steps for Buying/Selling other tokens for a specified price on Raydium.
4. Solana DEX/AMM Suite II: Serum

Serum —

Documentation Guide:…

Serum is a protocol and ecosystem that brings unprecedented speed and low transaction costs to decentralized finance. It is built on Solana and is completely..
..permissionless. Ecosystem partners can compose with Serum’s on-chain central limit order book to share liquidity and power markets-based features for institutional and retail users.

Serum’s on-chain central limit order book and matching engine provides liquidity and..
..price-time-priority matching to traders and composing projects. Users benefit from this exchange model through the ability to choose the price, size and direction of their trades. Composable protocols are extensively supported by Serum’s existing architecture, bootstrapped..
..liquidity, and matching service.

Users can access Serum directly for pairs that are not available on Raydium. For example Saber (SBR) is not available on Raydium, but users are able to trade it on Serum.
Serum’s Web3 interface also follows a standard integration procedure. Users will first connect their wallet, and then enter desired price and tokens quantities for buy/sell side execution.
Serum’s UI/UX for limit order trading should feel quite familiar for Raydium users.
5. Solana DEX/AMM Suite III: Orca

Orca —

Orca is a relatively new, yet promising addition to the Solana ecosystem. Orca’s interface focuses on simple, straightforward UI/UX design to onboard users unfamiliar with both Solana & DeFi operations. Orca can..
..offer casual, curious users an intuitive introduction to Solana, without sacrificing any of the backend, technical efficiency that experienced Raydium & Serum users have come to expect.

Orca’s DEX/AMM trading operations are all accessible from the Exchange tab on the homepage.
Swapping on Orca is possible with two differing inputs: numbers & words. The former is similar to Raydium/Serum. Swapping between two existing pairs requires a single input for desired quantity. Click swap, approve the transaction, and watch it confirm in milliseconds.
The second method requires users to write out a desired transaction into the search bar located above the swapping function ( e.g “24 USDC to orca). Orca will then proceed to register this input through its front-end and offer back suggestions which can be acted upon as..
..on-chain trading operations. After clicking through, Orca will fill in the inputs for the user’s selected swap, and if the terms are acceptable to the user, the user will be able to click “Exchange” to commence the swap.
Supplementary Resource: Additional step-by-step examples regarding web3 integration for DEX/AMM protocols can be found in published How to Defi ( book, written by Coingecko.
6. Reference Protocols — DEX & AMM

6.1. Mainnet Products:

- Serum [Mainnet][Solana]: Essential Solana DEX orderbook primitive which allows for trading of all SPL tokens with near-instantaneous price feed updates.
- Raydium [Mainnet][Solana]: First Solana AMM with fully decentralized central limit orderbooks.
- Orca [Mainnet][Solana]:DEX/AMM with intuitive, straightforward UI/UX that also features collectibles, high yield SPL-Stablecoin pools, and YF mechanics.
- Mango Markets [Mainnet][Solana]: Decentralized Trading Platform with spot and margin trading (up to 5x) with Serum-derived orderbook data.

- Mercurial [Mainnet][Solana]: Multi-token stablecoin swapper with minimal slippage.
- Bonfida [Mainnet][Solana] : Full product suite for critical solana infrastructure such as perpetual swaps, trading bots, token vesting, and naming services.
- Saber [Mainnet][Solana, Cross-Chain]: Solana’s leading cross-chain stablecoin and wrapped assets exchange for large, low-slippage stablecoin swaps
6.2. Pre-launch & Conceptual Products:

- 1Sol [Devnet][Solana,Cross-Chain]:Interoperable DEX aggregator on Solana. Comparable to 1inch.
- Nerve Finance [BSC Mainnet][Solana Devnet]: AMM launched on BSC for low slippage trading of primarily stablecoins and other pegged assets (gold, euro, etc.)
- Solster Finance [Devnet][Solana]: Launchpad for Initial Dex Offerings (IDOs) seeking to provide decentralized lottery and KYC services for whitelisted token sales.
- Hydraswap [Devnet][Solana]: AMM leveraging Pyth’s real-time oracle feeds to offer a CEX-like experience for liquidity providers (no IL, negligible slippage) and a native cross-chain bridge.
- Coinmeca [Proof-of-Concept][Solana,Ethereum]: Hybrid CEX/DEX architecture with a high-speed interoperable exchange. IDO first on Ethereum as ERC-20 before transitioning to SPL token model
- IdentitySwap [Proof-of-Concept][Solana]: AMM bypassing traditional KYC/AML norms with decentralized identity (based on Civic’s product).

• • •

Missing some Tweet in this thread? You can try to force a refresh

Keep Current with Sino Global Capital

Sino Global Capital Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!


Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @SinoGlobalCap

13 Sep
e-CNY and Exorbitant Privilege

Implications for Dollar Hegemony.
Read 14 tweets
13 Sep
Why we invested in Parrot Protocol @gopartyparrot

Not financial advice.
Also available on:

Medium -…

Github -…

Research by @TTx0x
1. Introduction

We are thrilled to announce our investment in Parrot Protocol, which is building a suite of DeFi products that enable the value locked within liquidity provider (LP) tokens to be accessible. Today, there are billions worth of tokens locked in various DeFi..
Read 68 tweets
7 Sep
How to Solana — Chapter 1: Lending & Borrowing

Not financial advice.
1. Overview

Solana DEX & AMM products are the essential interfaces for further composability & complexity within Solana’s DeFi service suite. After familiarizing oneself with these decentralized commerce platforms, users will often wonder whether more can be done with their..
Read 63 tweets
6 Sep
China NFT Market Update —— SW

>>Executive Summary

Driven by the wealth effect and leading domestic tech companies, China's NFT market is growing rapidly.
In addition to Chinese giants like Alibaba venturing into NFT, other household names like NetEase, Visual China (VCG), ByteDance (parent of TikTok) and other leading companies have made moves in the field of NFTs.
On June 26, NetEase and Nervina Labs ( jointly issued their first NFT work on Taobao: the commemorative gold coin of the Little Alpaca March.
Read 14 tweets
22 Aug
China NFT Market at a glance —— SW

1、Executive Summary

China NFT development
Compared with the explosive development of the overseas NFT ecosystem, China's domestic NFT market has only just begun.
Recently, Tencent, Alipay, Soyun Technology, 0-1 Universe and others have begun to create their own NFTs and launch NFT artworks.
Trends we see in the China NFT market:
Mostly built on tokenless blockchain, pay with RMB rather than Crypto. Tokenless platforms that don’t recognise crypto as currency should expect no regulatory scrutiny.
Read 43 tweets
17 Aug
Your Step-by-step Guide to Chinese Crypto Slang 🦧👀

For those interacting with Chinese crypto groups, you may get frustrated quickly if you can’t read some of the seemly strange phrases being thrown around.
Why are people in WeChat groups saying things like “don‘t ask, just 梭哈 (sūo hā)”? You’ll also hear people throwing strange insults like “you are such a 韭菜 (jiǔ cài / leek)”
Chinese crypto jargon, once used primarily for internal jokes in the early days of crypto chats like WeChat crypto groups or online forums, has now become part of the industry conversation.
Read 25 tweets

Did Thread Reader help you today?

Support us! We are indie developers!

This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!