Creating a Pool
Anyone can provide liquidity on sudoswap. You can choose whether you want to buy or sell NFTs across a range of prices, or do both to earn trading fees.
To create a pool, navigate to the Create Pool interface. Follow the steps below depending on the type of pool you want to create.
Trade Pool (Buy and Sell)
- On the Create Pool interface, select an NFT collection in the top-left pane.
- Optionally, choose an ERC20 token the NFTs should trade against. By default, NFTs trade against ETH:
- Under the Deposits section, choose how much ETH/ERC20 token to deposit (based on how many NFTs you are willing to buy) and which of your NFTs to deposit to seed the pool:
- Under the Strategy section, choose a starting Sell price for the pool. The corresponding Buy price is automatically adjusted in the following steps.
- Adjust the percentage Fee which will be taken on every trade.
- Select a type of price curve from the dropdown box and adjust the curve parameter as desired. For details about the price curves supported by sudoswap and their adjustable parameter(s), see Bonding Curves.
- Click "Create Pool" and confirm the approval and pool creation transactions in your wallet:
Buy-Only Pool
- On the Create Pool interface, select the Buy pool type in the top right-pane:
- Follow the same steps you would to create a Trade pool, as documented above. Notice that:
- Under the Deposits section, you only choose how much ETH/ERC20 token to deposit (based on how many NFTs you are willing to buy) to seed the pool.
- Under the Strategy section, the starting price you choose is a Buy price.
Sell-Only Pool
- On the Create Pool interface, select the Sell pool type in the top right-pane:
- Follow the same steps you would to create a Trade pool, as documented above. Notice that:
- Under the Deposits section, you only choose which of your NFTs to deposit to seed the pool.
- Under the Strategy section, the starting price you choose is a Sell price.
Managing Existing Pools
Once you've created a pool, you may wish to update its pricing and deposit or withdraw assets. To edit a pool, click on your address at the top-right of any page, click on My Pools, and select the pool.
Updating Pricing
- Navigate to the My Pools page.
- Click on the pool you want to change.
- Click on the "Edit Pool" button at the top-right of the page.
- Enter a new start price, delta, and or swap fee (only for Trade pools) for the pool:
- Click "Update" and confirm the transaction in your wallet.
Note: It is not possible to change a pool's type (linear, exponential, etc). Instead, withdraw your assets from the existing pool and create a new one.
Depositing and Withdrawing
- Navigate to the My Pools page.
- Click on the pool you want to deposit to or withdraw from.
- Click on the Deposit or Withdraw button in the Tokens or NFTs pane.
- For tokens, simply enter an amount and click the Deposit or Withdraw button:
- For NFTs, select the NFTs you wish to deposit or withdraw and click the Deposit or Withdraw button: