# Swap

* *<mark style="color:purple;">**Oracle L2's**</mark> token swapping feature is a powerful tool that enables users to seamlessly exchange one cryptocurrency for another within the <mark style="color:purple;">**Oracle L2**</mark> ecosystem. This functionality is made possible through the integration of ZK Rollup and Layer 2 technologies, which bring efficiency, speed, and security to the swapping process.*
* *With <mark style="color:purple;">**Oracle L2's**</mark> swap feature, users can experience fast and reliable transactions, avoiding the delays and high fees often associated with traditional on-chain exchanges. By leveraging the power of ZK Rollup, multiple transactions are bundled together and processed off-chain, significantly reducing gas fees and improving overall network scalability. This streamlined approach allows users to execute swaps with ease, even during periods of high network congestion.*

#### *Benefits*&#x20;

* *The benefits of using <mark style="color:purple;">**Oracle L2's**</mark> swap feature extend beyond speed and efficiency. The enhanced liquidity within the <mark style="color:purple;">**Oracle L2**</mark> ecosystem fosters a vibrant decentralized finance marketplace. Users can access a wide range of tokens and trading pairs, empowering them to diversify their portfolios and explore new investment opportunities. Additionally, the reduced transaction costs associated with swapping on <mark style="color:purple;">**Oracle L2**</mark> make it more accessible for users, regardless of their investment size.*
* *The integration of Layer 2 technologies further enhances the security of the swapping process. <mark style="color:purple;">**Oracle L2**</mark> leverages cryptographic techniques, such as zero-knowledge proofs, to ensure the validity and correctness of transactions. This robust security framework provides users with the confidence and peace of mind to engage in token swapping within the <mark style="color:purple;">**Oracle L2**</mark> ecosystem.*
* *Moreover, <mark style="color:purple;">**Oracle L2's**</mark> swap feature is designed to be user-friendly and intuitive. The platform provides a seamless and intuitive interface where users can easily navigate, select their desired tokens, and execute swaps with just a few clicks. This user-centric approach removes unnecessary complexities, making token swapping accessible to both experienced traders and newcomers to the crypto space.*
* *By offering a fast, secure, and user-friendly swapping experience, <mark style="color:purple;">**Oracle L2**</mark> enhances liquidity and promotes a vibrant DeFi marketplace within its ecosystem. Users can enjoy the benefits of efficient token exchanges, diversified investment opportunities, and reduced transaction costs, all while leveraging the power of ZK Rollup and Layer 2 technologies. Whether it's for portfolio management, investment strategies, or exploring new tokens, <mark style="color:purple;">**Oracle L2's**</mark> swap feature provides a seamless and convenient solution for users within the decentralized finance landscape.*

### Oracle Swap Rewards&#x20;

*Oracle L2 will introduce a unique way to turn your swap into an opportunity for bigger rewards through its innovative <mark style="color:purple;">$ORACLE</mark> pool system. This gamified reward structure allows you to earn <mark style="color:purple;">$ORACLE</mark> tokens as rewards for participating in swaps with selected ERC20 tokens.*

#### *Note: There may be a small additional fee associated with Swapping.*

#### *Prerequisites:*

* *A supported Ethereum wallet (e.g., MetaMask).*
* *Some Ethereum (ETH) in your wallet to cover gas fees.*
* *<mark style="color:purple;">$ORACLE</mark> tokens and other ERC20 token.*

#### *Step 1: Set Up Your Ethereum Wallet*

*If you don't have a compatible Ethereum wallet, install and set up one like MetaMask. Ensure you have ETH in your wallet to cover transaction fees.*

#### Step 2: Access Oracle L2

*Visit the Oracle L2 website or platform (provide the official link).*\
*Connect your Ethereum wallet to the platform by clicking on the wallet icon and selecting your wallet provider.*

#### Step 3: Select an ERC20 Token

*Browse the list of supported ERC20 tokens available for swapping on Oracle L2.*\
*Choose the ERC20 token you want to swap for <mark style="color:purple;">$ORACLE</mark>. Click on it to initiate the swap.*

#### Step 4: Swap ERC20 for $ORACLE

*Enter the amount of the selected ERC20 token you wish to swap.*\
*Review the transaction details, including estimated gas fees.*\
*Confirm the swap, and wait for the transaction to be processed on the Ethereum network.*

#### Step 5: Stake Your $ORACLE Tokens, you will be prompted to stake your $ORACLE tokens.

*Enter the amount of <mark style="color:purple;">$ORACLE</mark> you want to stake. This amount should be proportional to the ERC20 tokens you initially swapped.*

#### Step 7: Earn Rewards

*As other users participate in the same <mark style="color:purple;">$ORACLE</mark> pool, you will earn rewards in $ORACLE tokens over time.*\
*The amount of rewards you earn will depend on your staked $ORACLE tokens and the pool's total activity.*

#### Step 8: Claim Your Rewards

*Periodically, visit the <mark style="color:purple;">$ORACLE</mark> pool to claim your earned <mark style="color:purple;">$ORACLE</mark> rewards.*\
*Click on the "Claim" button and confirm the transaction.*

#### Step 9: Reinvest or Withdraw Rewards

*You can choose to reinvest your earned <mark style="color:purple;">$ORACLE</mark> tokens back into the pool to potentially earn more rewards.*\
*Alternatively, withdraw your <mark style="color:purple;">$ORACLE</mark> tokens to your wallet for any other use.*\
\
**Conclusion**:

*Oracle L2's <mark style="color:purple;">$ORACLE</mark> offer an exciting opportunity to earn additional rewards from your ERC20 token swaps and Stake. By following this tutorial and actively participating in these pools, you can maximize your returns and potentially grow your cryptocurrency portfolio. Be mindful of any additional fees associated with $ORACLE Pools, and always stay informed about the latest developments on Oracle L2 for the best results. Happy swapping and earning!*<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://oracle-l2.gitbook.io/oracle-l2/features/swap.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
