Saseul Gold Docs
  • Saseul Gold Docs
  • Network CLI
    • Using Saseulgold Network CLI
    • Wallet Interface
      • Representative Wallet Settings
      • Check your wallet balance
      • Remittance
    • Dex Interface
      • Get Token Detail
      • Mint Token
      • Transfer Token
      • Swap
      • ProvideLiquidity
    • Swap Process
      • Example
  • Dex API
    • Using Dex API
    • Token Info API
    • Token Mint API
    • Token Pair Info API
    • Provide Liquidity API
    • Faucet API
    • Swap
    • Liquidity Withdraw
    • Balance Of
    • Transfer
  • Backend API
    • Using Backend API
    • Token Detail API
    • Token List API
    • Pair List API
    • Pair Detail API
    • Pair Transaction Candle API
    • Block List API
Powered by GitBook
On this page
  1. Network CLI

Swap Process

  1. The liquidity provider (lp) deposits a balance for two token pairs.

  2. When a user executes a swap contract for a token pair, the token is exchanged according to the calculated rate.

  3. At this time, the liquidity provider will be paid the lp token as a fee according to the lp ratio.

  4. Liquidity providers receive a premium as a token and b token based on the percentage of lp tokens and the total amount of reserve fee when withdrawing deposits.

Remittance failed if liquidity pool does not exist for token pair

Remittance failure if payment reserve is less than remittance quantity

PreviousProvideLiquidityNextExample

Last updated 3 months ago