⛓️Swapping

Sobajaswap is designed to provide fast, secure, and low-cost trading of Ethereum-based tokens. Swap on Sobajaswap uses zero-knowledge proofs to enable instant trades, without the high gas fees or long waiting times. This makes it an attractive option for traders who want to avoid the high fees and slow transaction times associated with traditional decentralized exchanges.

Swapping Fees

The swapping fee is the highlight of Sobajaswap, we have designed a swap platform with low fees, fast liquidity with low latency. It is really useful for the community when the market has strong volatility, they will need a strong enough platform to implement liquidity.

Swapping fee: 0.3%

Swap Mechanism

The swap mechanism on Sobajaswap is a simple and efficient process that allows users to trade one token for another in a decentralized, trustless manner. Here is an overview of the swap mechanism on Sobajaswap:

  1. A user initiates a swap by specifying the input token, output token, and the amount of input token they want to swap.

  2. The Sobajaswap smart contract calculates the exchange rate between the two tokens using the Automated Market Maker (AMM) algorithm.

  3. The user approves the transfer of the input token to the smart contract, and the smart contract locks the input token in temporary storage on the ZkSync blockchain.

  4. The smart contract calculates the amount of output token that the user will receive based on the exchange rate and deducts any fees associated with the swap.

  5. The smart contract transfers the output token to the user's wallet on the ZkSync blockchain and releases the locked input token to the liquidity pool.

The mathematical formula for the swap mechanism on Sobajaswap uses the AMM algorithm to calculate the exchange rate between the two tokens. Check the next part "" to an overview of the Liquidity mechanism.

Swap Guideline

Step 1: Go to Swap Page

Go to https://app.sobajaswap.com/#/swap Click Swap on the homepage to enter the exchange page.

Step 2: Connect to your wallets

Connect the wallet and confirm the connection in the pop-up window.

  • Make sure you already installed a crypto wallet on your browser

  • Import ZkSync Era network to your crypto wallet - Click here to see " Import ZkSync on Metamask "

Step 3: Start to swap

  • Choose the token in “From” and “To” and enter the amount you want to exchange.

  • Click “Confirm” after you make sure all transaction information is correct.

  • The Metamask will show you a pop-up window to confirm the transaction. You can adjust the GAS fee (network fee) here.

Last updated