What is sudoswap?
Sudoswap is a gas-efficient, automated market maker for NFT (ERC721s) to token (ETH or ERC20) swaps with adjustable bonding curves. It’s also an NFT marketplace.
With Sudoswap, liquidity providers have two options. They can provide a spread to both parties in order to collect fees, or they can deposit into a one-sided buy/sell pool.
This protocol’s main unit is called “LSSVMPair,” and it can store NFTs, tokens, or both. “LSSVMRouter” is then used by the end users to swap via multiple pools and handle approvals on one contract.
Keep in mind that the liquidity pools will return the same price, irrespective of which particular NFT from a collection is being traded. That is because Sudoswap doesn’t make a difference between ERC721 IDs.
Read on to learn more about liquidity pools, bonding curves, and how to use Sudoswap.
AMMs, Liquidity Pools, and Bonding Curves
All this new terminology might be unfamiliar, so let’s explore what it means.
Simply put, automated market makers (AMMs) are the protocols behind decentralized exchanges (DEXs).
They provide liquidity for the DEX via automated trading algorithms. That replaces the need for order books when pairing buyers and sellers.
Liquidity pools are smart contracts used for swapping assets. The most common example would be an NFT to ETH pool, which is used to trade NFTs for ETH and vice versa.
They use bonding curves to determine the price of assets. So each time an asset is purchased from the pool, its price will increase and vice versa.
Bonding curves are used to define the price and supply relationship for an asset.
With Sudoswap, you have a choice between linear and exponential bonding curves.
Linear curves increase or decrease NFT prices by a fixed amount (delta) after each asset is sold or purchased. Exponential curves, on the other hand, increase or reduce NFT prices by a percentage (delta).
Buying and Selling NFTs with Sudoswap
Now we know what Sudoswap is. So let’s learn how to use it.
How to Buy NFTs
- Go to the collections page.
- Pick a collection.
- Select the NFTs you want to purchase (they will show up in the cart on the right).
- Use the blue “sudo swap” button to execute the swap.
How to Make a Collection Offer
- Go to the “Collections” page using the top menu.
- Pick a collection.
- Use the blue “Make Collection Offer” button (a pop-up will appear).
- Set a price for your offer.
How to Sell NFTs
- Go to the “Collections” page using the top menu.
- Pick a collection.
- Select the NFTs you want to sell (they will show up in the cart on the right).
- Use the blue “sudo swap” button to execute the swap.
- Verify the first transaction with your wallet to allow NFT access to Sudoswap.
- Verify the second transaction with your wallet to execute the sale.
How to List NFTs
- Go to the “Your NFTs” page using the top menu.
- Pick the NFTs you want to list.
- Use the blue “List NFTs” button (a pop-up will appear).
- Set the price using “Start Price.”
- If you want, set a price increment after every sale using “Price Increase.”
- Use the blue Approve button.
- Verify the first transaction with your wallet to allow NFT access to Sudoswap.
- Verify the second transaction with your wallet to execute the sale.
Difference Between Selling and Listing
Whenever you sell an NFT, it’s instantly sold for the best price into the bonding curve.
Listing an NFT is different because you can set a custom price and wait for someone to buy it.
For immediate liquidity, sell your NFTs. But remember, there will be slippage, so your NFT will be sold for less than the market value.
Providing Liquidity
When it comes to providing liquidity, you have two options. You can buy/sell NFTs over a range of prices (bonding curve) or collect trading fees by doing both.
Creating a Pool
- Go to the “Your Pools” page using the top menu.
- Use the “Create a New Pool” button.
- Pick the type of pool you need.
Buying NFTs with ETH
- Use the “deposit” drop-down menu and click on ETH.
- Use the “receive” drop-down menu and click on the desired collection.
- Set the starting price.
- Pick the bonding curve type.
- Set the delta value.
- Set the number of NFTs you want to buy
- Use the “Next Step” button
- Click the “Create Pool” button
- Finally, verify the transaction using your wallet
Note: when buying a single asset, it doesn’t matter which curve or delta you pick.
Selling NFTs for ETH
- Use the “deposit” drop-down menu and click on the desired collection.
- Use the “receive” drop-down menu and click on ETH.
- Set the starting price.
- Pick the bonding curve type.
- Set the delta value.
- Set the number of NFTs you want to sell.
- Use the “Next Step” button.
- Pick the NFTs you want to deposit.
- Click the “Approve” button.
- Verify the first transaction using your wallet.
- Click the “Create Pool” button.
- Verify the second transaction using your wallet.
Note: when selling a single asset, it doesn’t matter which curve or delta you pick.
Doing Both to Earn Trading Fees
- Use the “deposit” drop-down menu and click on ETH.
- Use the “receive” drop-down menu and click on the desired collection.
- Set the desired trading fee percentage.
- Set the starting price.
- Pick the bonding curve type.
- Set the delta value.
- Set the number of NFTs you want to buy and sell.
- Use the “Next Step” button.
- Pick the NFTs you want to deposit.
- Click the “Approve” button.
- Verify the first transaction using your wallet.
- Click the “Create Pool” button.
- Verify the second transaction using your wallet.
Recent sudoswap news
On July 22th, Uniswap announced they would launch NFTs with full Sudoswap support.
This integration will enable Uniswap users to take full advantage of Sudoswap’s AMM liquidity.