# P2P Exchange Guide

In this guide, we will cover the steps to create and manage orders on the Messier P2P Exchange with both single-user and multi-user (Multi-Swap) options. Follow the instructions below to begin trading on the platform.\
\
1\. Creating a New Order with Multi-Swap Disabled

When the **Multi-Swap option is disabled**, only a single user can purchase the order in its entirety. Here’s how to create a single-user order:

#### Steps:

1. **New Order**: Click on the 'New Order' button on the platform.
2. **Public Order**: Ensure the 'Public Order' option is selected to make your listing visible to all users.
3. **Choose Tokens**: Select the tokens you wish to swap from the preloaded list, or search by the token address.
4. **Set Token Amounts**: Input the desired token amounts for each side of the swap.
5. **Optional Expiry Date**: Set an expiry date for your listing if you want it to automatically remove after a specific time. If not, it will remain active until manually removed.
6. **Toggle Multi-Swap Off**: Keep the 'Multi-Swap' option toggled off for a single-user order.
7. **Create and Confirm**: Click 'Create' and confirm the transaction in MetaMask. Remember, this requires two transactions: the first is an approval, and the second transfers the tokens from your wallet to the exchange.

**Congratulations!** Your order is now publicly listed on the Messier P2P Exchange.

***

### 2. Buying a Single-User Order

With Multi-Swap disabled, only one user can purchase the full amount. Here’s how to buy a listing:

#### Steps:

1. **Browse Listings**: Navigate the public market to find the listing you wish to purchase. For example, a listing might offer **0.01 ETH for 300 M87 tokens**.
2. **Select Order**: Click 'Buy' on the listing you want. A confirmation screen will display the exact amount you will receive after the exchange fee is applied.
3. **Confirm Swap**: Click 'Swap' and confirm the transaction in MetaMask.
4. **Withdraw Tokens**: Once the transaction completes, go to the 'Withdrawable Tokens' section.
5. **Withdraw Tokens to Wallet**: Find the newly acquired tokens, click 'Withdraw,' and confirm the transaction in MetaMask to transfer them from your exchange account to your MetaMask wallet.

**Success!** You’ve completed a purchase on the platform.

***

### 3. Withdrawing Funds from a Sold-Out Listing

After an order is fully sold, you can withdraw the proceeds. Here’s how:

#### Steps:

1. **Navigate to Withdrawable Tokens**: Go to the 'Withdrawable Tokens' section on the platform.
2. **Select Token**: Find the token you want to withdraw and click 'Withdraw.'
3. **Confirm Withdrawal**: Confirm the transaction in MetaMask.

**Your funds are now transferred to your connected wallet.**

***

### 4. Creating a New Order with Multi-Swap Enabled

With the **Multi-Swap option enabled**, your listing can be purchased by multiple users in portions. Here’s how to set up a Multi-Swap order:

#### Steps:

1. **New Order**: Click on 'New Order' to start a new listing.
2. **Public Order**: Ensure 'Public Order' is selected.
3. **Select Tokens**: Choose tokens from the preloaded list or search by token address.
4. **Enter Token Amounts**: Specify the token amounts for each side of the swap.
5. **Optional Expiry Date**: Set an expiry date if desired, or leave it as default to keep the listing open until removed manually.
6. **Toggle Multi-Swap On**: Turn on the 'Multi-Swap' option to allow multiple users to buy portions of the swap.
7. **Create and Confirm**: Click 'Create' and confirm the transaction in MetaMask (first transaction for approval, second for the token transfer).

**Congratulations!** Your Multi-Swap order is now listed publicly.

***

### 5. Buying from a Multi-Swap Order

With Multi-Swap enabled, you can buy part of the listed order. Here’s how:

#### Steps:

1. **Browse Market**: Find a listing you wish to buy, such as **0.02 ETH for 1000 M87 tokens**.
2. **Select Order**: Click 'Buy' on the listing. The confirmation screen will display the exact amount you’ll receive after fees.
3. **Confirm Purchase**: Click 'Swap' and confirm in MetaMask.
4. **Withdraw Tokens**: Once complete, go to the 'Withdrawable Tokens' section.
5. **Withdraw to Wallet**: Select the tokens, click 'Withdraw,' and confirm the MetaMask transaction to transfer tokens to your wallet.

**You’ve successfully completed a Multi-Swap purchase.**

***

### 6. Withdrawing Funds from a Partially Sold Multi-Swap Listing

You don’t need to wait for a Multi-Swap listing to sell out to withdraw proceeds.

#### Steps:

1. **Navigate to Withdrawable Tokens**: Go to the 'Withdrawable Tokens' section on the platform.
2. **Select Token**: Find the token to withdraw and click 'Withdraw.'
3. **Confirm Withdrawal**: Confirm the transaction in MetaMask.

**Funds are transferred to your wallet, even if only part of the listing is sold.**

***

This concludes the Messier P2P Exchange guide. With these steps, you’re ready to create orders, browse the public market, make purchases, and withdraw funds easily. Happy trading!
