diff --git a/docs/docs/tutorial/faq_tutorial.mdx b/docs/docs/tutorial/faq_tutorial.mdx
index 69aa4785..22cf9870 100644
--- a/docs/docs/tutorial/faq_tutorial.mdx
+++ b/docs/docs/tutorial/faq_tutorial.mdx
@@ -24,11 +24,12 @@ slug: /faq_tutorial
- No, slippage tolerance only safeguards you from excessive transaction fees. If the slippage
- benefits you, the transaction will proceed without interruption.
+ No, slippage tolerance only safeguards you from excessive costs. If the slippage benefits you,
+ the transaction will proceed without interruption and you can get more tokens then expected.
- Is slippage tolerance effective in both directions? #
+ Is slippage tolerance effective for both minimizing losses and maximizing bonus token
+ acquisition?? #
The fee is deducted upon initiating a transaction on Invariant, irrespective of its success or - failure. This fee covers processing and network costs associated with attempting the - transaction. Even if the transaction fails, these costs are incurred and not refunded to the - user. + failure. This fee covers processing the transaction. Even if the transaction fails, these costs + are incurred and not refunded to the user, but are smaller then in case of success.
diff --git a/docs/docs/tutorial/how_to_add_liquidity.md b/docs/docs/tutorial/how_to_add_liquidity.md index 224062de..e5125e76 100644 --- a/docs/docs/tutorial/how_to_add_liquidity.md +++ b/docs/docs/tutorial/how_to_add_liquidity.md @@ -8,60 +8,61 @@ slug: /how_to_add_liquidity ### Add new position to existing pool -1. Head to the "Pool" page and click **Add position**. +1. Head to the "Pool" page and click **Add position**. ![add position](/img/docs/app/add_position.png) -2. Select pair of tokens. We have chosen as an example pair of stable coins. +2. Select pair of tokens. We have chosen as an example pair of stable coins. ![liquidity position](/img/docs/app/liquidity_position.png) -3. Select **fee**. Each fee represents different liquidity pool. +3. Select **fee**. Each fee represents different liquidity pool. ![fee](/img/docs/app/fee.png) -Invariant provides specific fee values that you can choose to create you position. For your better experience, wondering which fee should choose, for some positions we highlighted which option is most recommended. +Invariant provides specific fee values that you can choose to create you position. For your better experience, wondering which fee should choose, for some positions we highlighted which option is most recommended.-The fees associated with your liquidity position will be in both tokens of the given pair. After swapping between SOL and USDC, for instance, a small amount of both SOL and USDC will be credited to your account as rewards for providing liquidity. +Fees for your liquidity position are deducted from the first token you deposit, regardless of the swap direction. For example, if you add SOL and USDC to a pool, fees are taken in SOL. Conversely, if you add USDC and SOL, fees are deducted from your USDC balance. -Users have flexibility in determining the concentration of their range orders. Opting for a broader range may result in higher fee generation in the event of price fluctuations within your range, but it also raises the risk of incomplete orders if the spot price shifts before your entire range is executed. +Users control the precision of their range orders. A tighter range (smaller difference between upper and lower limits) can generate higher fees if the price fluctuates within your set range. However, it also increases the risk of incomplete orders if the market price moves significantly before your entire range is filled. Conversely, a wider range (larger difference between upper and lower limits) results in lower fees but provides less control over the final execution price. When selecting a range for your orders, consider the characteristics of the assets involved. For stable coins, which typically have low volatility, a narrower range may be appropriate to capture smaller price movements and maintain stability in your liquidity provision. In contrast, for more dynamic coins with higher volatility, a wider range could be advantageous to accommodate larger price fluctuations and capture potential trading opportunities. Adjusting the range based on the stability and volatility of the assets allows you to optimize your liquidity provision strategy and adapt to market conditions effectively. +-4. Provide value of tokens. The value of tokens is interdependent, as the result of multiplying them must always yield the same outcome. +4. Provide amount of tokens. The amount of tokens is interdependent, as the result of multiplying them must always yield the same outcome. -5. Choose between two options for adding **concentrated liquidity** and setting up the pool range: +5. Choose between two options for adding **concentrated liquidity** and setting up the pool range: - [**Uniform liquidity**](/docs/uniform_concentration) - Ideal for beginners, this option evenly distributes liquidity on both sides of the current price. It utilizes a simple slider to inform you about the potential increase in fees compared to the full range with the same amount of tokens - [**Price range**](/docs/price_range) - Offers full customization, allowing you to set the liquidity range at any point, even on one side of the current price. This option utilizes movable flags on the chart to set the minimum and maximum price of the liquidity range. -![liquidity legend](/img/docs/app/liquidity_legend.png) +![line chart](/img/docs/app/line_chart.png) +![line chart](/img/docs/app/bar_chart.png) + +#### Legend: -#### Legend: -
- - white dashed lines - represents the active liquidity range in the liquidity chart. Active liquidity is determined by the maximum price range resulting from the statistical volume of swaps for the last 7 days. +- white dashed lines - represents the active liquidity range in the liquidity chart. Active liquidity is determined by the maximum price range resulting from the statistical volume of swaps for the last 7 days. + +- yellow bold line - represents current price. - - yellow bold line - represents current price. +- lines labeled with min and max - represents the user-defined liquidity range for creating position in pool. You can switch view between Bar chart and Line chart.-![line chart](/img/docs/app/line_chart.png) -![line chart](/img/docs/app/bar_chart.png) - -6. When you finish, just press **Add Liquidity**. After that you will have to confirm transaction in your wallet. Notice that from your wallet will be taken also small amount of **SOL** - which is deposit to create liquidity pool. Once you decide to close this pool, most of that fee will go back to you. +6. Once you're ready, click **Add Liquidity** You'll then be prompted to confirm the transaction in your wallet. A small amount of **SOL** will be deducted from your wallet as a deposit to create your liquidity pool and position. If the pool already exists, this fee is only for creating your position, not for pool creation itself. Most of this fee will be returned to you when you decide to close your position. However, currently, closing the entire pool is not possible. -7. If you come back to liquidity position list, then you can see your active positions. +7. In the liquidity position list, you can easily identify your active positions. These positions will have their fee highlighted in green, indicating that they are currently generating fees. -![line chart](/img/docs/app/pool_position.png) +![line chart](/img/docs/app/positions.png) -After some time you can observe **how price changes and take fees**, which you get from providing liquidity. +After some time you can observe **how price changes and take fees**, which you get from providing liquidity. ### Create new pool @@ -69,6 +70,4 @@ After some time you can observe **how price changes and take fees**, which you g It can happend that the pair of tokens that you have chosen not exist in any pool. In that case you can create it first. It's important to keep in mind, that estimated cost of creating a new pool is **0.1 SOL** -Creation process is almost the same like for existing pool. Difference is that you don't have an preview of chart and **you should specified staring price ratio for chosen pair of tokens**. - - +The creation process for a new pool is similar to adding liquidity to an existing one, but with two key differences. First, you won't see a preview chart of the liquidity range. Second, **you'll need to specify the starting price ratio for your chosen token pair**. It's recommended to check the global market price to ensure an accurate value. diff --git a/docs/docs/tutorial/how_to_add_liquidity/price_range.md b/docs/docs/tutorial/how_to_add_liquidity/price_range.md index a1469784..cb4a9e87 100644 --- a/docs/docs/tutorial/how_to_add_liquidity/price_range.md +++ b/docs/docs/tutorial/how_to_add_liquidity/price_range.md @@ -8,6 +8,6 @@ For greater precision compared to uniform concentration, Invariant offers the op ![liquidity legend](/img/docs/app/price_range_liquidity.png) -To set the price range, simply drag the movable flags on the liquidity chart labeled as **MIN** and **MAX**. Alternatively, you can use buttons to adjust the min and max prices by 0.01% increments, known as "one tick." +To set the price range, simply drag the movable flags on the liquidity chart labeled as **MIN** and **MAX**. Alternatively, you can use buttons to adjust the min and max prices of the range. -In cases where the price range does not cover the current market price, you can still create a specific liquidity pool by adding only one token from the pair. This allows users to participate in providing liquidity, even with a limited range, ensuring flexibility in managing assets within the decentralized exchange ecosystem. \ No newline at end of file +In cases where the price range does not cover the current market price, you can still create a specific liquidity pool by adding only one token from the pair. This allows users to participate in providing liquidity, even with a limited range, ensuring flexibility in managing assets within the decentralized exchange ecosystem. diff --git a/docs/docs/tutorial/how_to_add_liquidity/uniform_concentration.md b/docs/docs/tutorial/how_to_add_liquidity/uniform_concentration.md index f94b3556..30c25e66 100644 --- a/docs/docs/tutorial/how_to_add_liquidity/uniform_concentration.md +++ b/docs/docs/tutorial/how_to_add_liquidity/uniform_concentration.md @@ -4,10 +4,10 @@ title: Uniform concentration slug: /uniform_concentration --- -Let's simplify the concept of uniform concentration to enhance transparency in liquidity provision. With uniform concentration, the liquidity range is symmetrically centered around the current token price. For instance, if the USDT/USDC pair is priced at 0.999 and we set the delta price to 0.1 percent, liquidity creation will be focused on the range of 0.998 to 1. +Let's simplify the concept of uniform concentration to enhance transparency in liquidity provision. With uniform concentration, the liquidity range is symmetrically centered around the current token price. For instance, if the USDT/USDC pair is priced at 0.999 and we set the delta price to 0.1 percent, liquidity will be alocated in the range from 0.998 to 1. ![liquidity legend](/img/docs/app/uniform_concentration.png) Maintaining such a position suggests the potential to earn significantly higher fees compared to providing liquidity across the full range. For a user-friendly experience, we've introduced a concentration slider, enabling users to symmetrically boost liquidity around the current price while maximizing efficiency. -It's crucial to understand that the current price may change after you set up a pool with a specific range. If the current price moves outside your designated range, your liquidity pool will become inactive until the current price returns to your set range. +Liquidity positions are range-bound. If the price moves outside your set range after you add liquidity, your position will become inactive until the price returns within your chosen range. diff --git a/docs/docs/tutorial/how_to_claim_fee.md b/docs/docs/tutorial/how_to_claim_fee.md index 9b5c4500..fc051369 100644 --- a/docs/docs/tutorial/how_to_claim_fee.md +++ b/docs/docs/tutorial/how_to_claim_fee.md @@ -10,10 +10,8 @@ slug: /how_to_claim_fee 2. Choose the pool from which you wish to claim fees. -3. Upon selecting a specific pool, locate the **Unclaimed fees** section. To collect your profits from the pool, simply click the **Claim fee** button. +3. Upon selecting a specific pool, locate the **Unclaimed fees** section. To collect your profits from the pool, simply click the **Claim fee** button. Any remaining fees will also be automatically returned to you when you close your position. ![claim fee](/img/docs/app/claim_fee.png) 4. If you opt to collect your fees, you'll need to approve the transaction in your wallet. Once approved, the tokens will be transferred to your wallet address. That concludes the process! Remember, each claim incurs a blockchain transaction, so consider holding onto unclaimed fees to minimize extra fees. - - diff --git a/docs/docs/tutorial/how_to_remove_liquidity.md b/docs/docs/tutorial/how_to_remove_liquidity.md index d921ec17..f34832c6 100644 --- a/docs/docs/tutorial/how_to_remove_liquidity.md +++ b/docs/docs/tutorial/how_to_remove_liquidity.md @@ -8,6 +8,12 @@ slug: /how_to_remove_liquidity ![close position](/img/docs/app/close_position.png) -2. Next, you'll need to confirm the transaction in your wallet. Note that you will receive back some **SOL - which was deposit for your pool position** - along with the value of tokens from your pool. +2. Next, you'll need to confirm the transaction in your wallet. -![confirm close](/img/docs/app/confirm_close.png) \ No newline at end of file +After confirming the transaction in your wallet, you'll receive: + +- **Returned deposit** - A portion of SOL will be returned, representing the deposit you initially made for your liquidity position. +- **Withdrawn liquidity** - You'll get back the tokens you provided as liquidity. +- **Unclaimed fees** (if any) - Any fees you haven't claimed yet will also be returned to you. + +![confirm close](/img/docs/app/confirm_close.png) diff --git a/docs/docs/tutorial/how_to_swap.md b/docs/docs/tutorial/how_to_swap.md index 9fafb1df..8389fb24 100644 --- a/docs/docs/tutorial/how_to_swap.md +++ b/docs/docs/tutorial/how_to_swap.md @@ -6,9 +6,9 @@ slug: /how_to_swap Swapping tokens on Invariant is easy, fast, and cost-effective. Here's a step-by-step guide to get started: -1. Navigate to the **Swap** page. +1. Navigate to the **Swap** page. -2. Select the tokens you wish to swap. For instance, if you want to swap **SOL** tokens, click on the SOL token. A modal will appear where you can choose a specific token by either entering its name or selecting one from the list. Additionally, you can add a token by clicking the **plus** button and providing its token address. In this example, we're swapping from SOL to USDC. +2. Select the tokens you wish to swap. For instance, if you want to swap **SOL** tokens, click on the SOL token. A modal will appear where you can choose a specific token by either entering its name or selecting one from the list. Additionally, you can add a token by clicking the **plus** button and providing its token address. In this example, we're swapping from SOL to USDC. ![token](/img/docs/app/token.png) @@ -22,8 +22,8 @@ Swapping tokens on Invariant is easy, fast, and cost-effective. Here's a step-by ![transaction details](/img/docs/app/transaction_details.png) -- **Exchange rate** - Indicates how much of one cryptocurrency you'll receive in exchange for another, helping you understand the impact of your trade on your holdings. -- **Fee** - Represents the cost associated with executing a trade on the blockchain, ensuring quick and secure transaction processing. +- **Exchange rate** - Indicates how much of one token you'll receive for another (e.g., 1 SOL = 190 USDC), helping you understand the trade's impact on your holdings. +- **Fee** - Represents the cost associated with using a particular liquidity pool to execute a transaction. It shows the amount paid to liquidity providers as an incentive for supplying liquidity. - **Price impact** - Measures how much a trade affects the price of a cryptocurrency, providing insight into its potential market impact. - **Slippage tolerance** - Sets the maximum difference between the expected and actual price of a trade, ensuring execution within a specified price range even if market conditions change. @@ -32,11 +32,16 @@ You can also swap the exchange rate by clicking on the token's price. ![price 1](/img/docs/app/price1.png) ![price 2](/img/docs/app/price2.png) -5. Optional you can set **slippage tolerance** in the top right corner (By default set to 1). +5. In the top right corner, you can optionally set your slippage tolerance (defaults to 1%). + +- This value is a percentage, where 1% is represented by 1. +- Clicking the **Auto** button sets the slippage tolerance to 1%. +- Maximum possible value is 50%. +- Invariant remembers your slippage tolerance setting for future use, even after you close your browser. ![swap transaction settings](/img/docs/app/swap_transaction_settings.png) -6. Before initiating a swap, you have the option to refresh token prices by clicking the **"refresh button"**. This action helps mitigate the risk of encountering high slippage during the transaction by providing updated pricing information. +6. Before initiating a swap, you have the option to refresh token prices by clicking the **"refresh button"**. This action helps mitigate the risk of encountering high slippage during the transaction by providing updated pricing information. ![refresh](/img/docs/app/refresh.png) @@ -47,4 +52,3 @@ You can also swap the exchange rate by clicking on the token's price. ![confirm transaction](/img/docs/app/confirm_transaction.png) 9. That's it! After a few seconds, you should see your swapped tokens in your wallet. - diff --git a/docs/docs/tutorial/interface.md b/docs/docs/tutorial/interface.md index 50690c08..4a490058 100644 --- a/docs/docs/tutorial/interface.md +++ b/docs/docs/tutorial/interface.md @@ -8,16 +8,15 @@ This tutorial will explain and show you how to use all the features of Invariant Below is a breakdown of the interface elements you'll encounter when using our platform. - ### Main features of Invariant ![tabs](/img/docs/app/tabs.png) -[**Swap**](/docs/how_to_swap) - This tab allows you to swiftly exchange one cryptocurrency for another directly from your wallet. It's a convenient feature for quick transactions. +[**Swap**](/docs/how_to_swap) - This tab allows you to swiftly exchange one cryptocurrency for another directly from your wallet. It's a convenient feature for quick transactions. [**Pool**](/docs/how_to_add_liquidity) - In the Pool tab, you can provide liquidity to the decentralized exchange by depositing pairs of tokens into liquidity pools. These pools facilitate trading and earn you a share of the transaction fees. -[**Stats**](/docs/stats) - The Stats tab provides essential statistical information about various tokens, pools, and trading pairs available on the platform. It's a useful tool for making informed trading decisions. +[**Stats**](/docs/stats) - The Stats tab provides essential statistical information about various tokens, pools, and trading pairs available on the platform. These data can provide valuable insights for decision-making regarding liquidity provision or market-making strategies. [**Farms**](/docs/interface) - This tab displays yield farming opportunities where you can stake your LP (Liquidity Provider) tokens to earn additional rewards in the form of the platform's native token or other incentives. @@ -27,9 +26,8 @@ Below is a breakdown of the interface elements you'll encounter when using our p [**Fee**](/docs/transaction_priority) - This button allows you to adjust the transaction fee or priority level when making trades. Higher fees typically result in faster transactions. -[**RPC**](/docs/rpc) - You can switch between different network configurations using this button. +[**RPC**](/docs/rpc) - You can switch between different RPC providers using this button. [**Select Network**](/docs/networks) - You can switch between different blockchain networks using this feature. By default, the mainnet is selected, but you can explore other networks as needed. [**Connect Wallet**](/docs/how_to_connect_your_wallet) - This button enables users to connect their cryptocurrency wallet to the Invariant, allowing to manage funds and interact with the platform seamlessly. After connecting your wallet, in this place will show up your wallet address." - diff --git a/docs/docs/tutorial/networks.md b/docs/docs/tutorial/networks.md index d0520b40..113dd3f9 100644 --- a/docs/docs/tutorial/networks.md +++ b/docs/docs/tutorial/networks.md @@ -1,10 +1,10 @@ --- -title: Solana networks +title: Networks slug: /networks --- -Solana networks refer to the different blockchain networks built on top of the Solana protocol or ecosystem. These networks serve various purposes, including testing, development, experimentation, and specialized use cases. Invariant supports most of them: +Blockchain networks come in many forms. These networks serve a variety of purposes, including testing, development, experimentation, and specialized applications. Invariant offers support for a wide range of these networks: ![Networks](/img/docs/app/networks.png) @@ -12,6 +12,4 @@ Solana networks refer to the different blockchain networks built on top of the S - **Devnet** - Devnets, or development networks, are similar to testnets but are specifically intended for developers to build and test applications in a controlled environment. -- **Eclipse** - [Eclipse](https://eclipse.invariant.app/) Network is a separate blockchain project focused on Ethereum that leverages Solana's powerful Sealevel Virtual Machine (SVM) under the hood. This allows developers to build familiar Ethereum applications that run on the Eclipse network, essentially enjoying the benefits of Solana's speed and efficiency on the Ethereum blockchain. It acts like a bridge, using Solana's tech to streamline transactions on Ethereum without completely replacing the Ethereum network itself. - -Each network serves a particular purpose within the ecosystem, providing developers and users with options for testing, development, and innovation while maintaining interoperability with the broader Solana blockchain network. \ No newline at end of file +- **Eclipse** - [Eclipse](https://eclipse.invariant.app/) Network is a secure, high-performance Layer 2 (L2) blockchain network built on Ethereum, leveraging Solana Virtual Machine's (SVM) parallel processing for unmatched speeds, Ethereum's validating bridge for security, Celestia's data availability sampling for scalable verification, and acting as a shared platform for various applications to achieve cross-application composability. diff --git a/docs/docs/tutorial/priority_fees.md b/docs/docs/tutorial/priority_fees.md new file mode 100644 index 00000000..ab0a9bdf --- /dev/null +++ b/docs/docs/tutorial/priority_fees.md @@ -0,0 +1,33 @@ +--- +title: Priority fees + +slug: /priority_fees +--- + +**Unlock the full potential** of your Solana trading experience with Invariant's settings section. Here, you can **customize your priority fees**. + +![settings](/img/docs/app/fee_btn.png) + +### Transaction priority + +This feature allows you to adjust the transaction fee when making trades on the Invariant platform. By setting your transaction priority, you can control how much additional fee will be applied to your transaction, influencing higher chances of confirming the transaction on the Solana network. + +#### Why is it needed? + +
+Priority fees on the Solana blockchain are necessary to incentivize validators to include your transaction in the next block. These fees act as a priority mechanism, allowing users to increase their chances of passing their transactions by paying a higher fee, ensuring transaction processing even during periods of network congestion. ++ +![transaction priority](/img/docs/app/transaction_priority.png) + +#### Transaction Priority Levels: + +1. Normal Priority (Max 0.000005 SOL - 1x Market Fee) - This is the default priority level, providing standard transaction processing. Transactions during network congestion will have lower chances of passing. + +2. Market Priority (Max 0.001 SOL - 85% Percentile Fees from Last 20 Blocks) - This priority fee will ensure that your transaction passes in most cases. + +3. High Priority (Max 0.05 SOL - 5x Market Fee) - High priority fee when network congestion is very high. + +4. Turbo Priority (Max 0.1 SOL - 10x Market Fee) - Turbo priority fee when network congestion is extremely hight. + +5. Custom Priority (Max 2 SOL) - For users who require precise control over transaction priority, the custom priority option allows you to set a priority fee up to a maximum of 2 SOL. diff --git a/docs/docs/tutorial/rpc.md b/docs/docs/tutorial/rpc.md index fd1bc86a..7996a0cc 100644 --- a/docs/docs/tutorial/rpc.md +++ b/docs/docs/tutorial/rpc.md @@ -14,11 +14,11 @@ In Invariant, you can choose your preferred RPC endpoint for interacting with th Here are the options available that **Invariant** supports: -- **Nightly** +- **Nightly** - **Hello Moon** -- **Alchemy** -- **QuickNode** +- **Alchemy** +- **QuickNode** - **Solana** -- **Custom RPC Address** +- **Custom RPC Address** -Selecting the appropriate RPC endpoint is crucial for ensuring seamless communication with the Solana blockchain network, allowing you to access blockchain data, submit transactions, and interact with the **Invariant** platform efficiently. \ No newline at end of file +Selecting the appropriate RPC endpoint is crucial for ensuring seamless communication with the Solana blockchain network, allowing you to access blockchain data, submit transactions, and interact with the **Invariant** platform efficiently. diff --git a/docs/docs/tutorial/stats.md b/docs/docs/tutorial/stats.md index 22c93737..7243197e 100644 --- a/docs/docs/tutorial/stats.md +++ b/docs/docs/tutorial/stats.md @@ -8,27 +8,38 @@ In the Stats section, you'll discover vital information regarding your tokens an ### Stats of Invariant -#### Volume -Total value of trades conducted on the Invariant platform +#### Volume + +Total value of trades conducted on the Invariant platform. Volume number is a value from last 24-hours. Each bar on the chart represents daily trading activity. ![volume invariant](/img/docs/app/volume_invariant.png) #### Liquidity -measures the depth of the market and the ease of trading on Invariant. It indicates the availability of assets for buying or selling without significantly affecting their prices. Higher liquidity generally signifies a more active and efficient market, as there are more participants willing to trade assets at various price levels. + +Measures the depth of the market and the ease of trading on Invariant. It indicates the availability of assets for buying or selling without significantly affecting their prices. Higher liquidity generally signifies a more active and efficient market, as there are more participants willing to trade assets at various price levels. ![liquidity invariant](/img/docs/app/liquidity_invariant.png) #### Last 24-hours stats + +This section provides a snapshot of key metrics that represent the overall activity on the Invariant platform. + +- **Volume 24H** - This metric shows the total value of all tokens exchanged through Invariant transactions. + - **TVL** - Total Value Locked represents the total value of assets locked within the Invariant platform for providing liquidity to various trading pairs. TVL is often used interchangeably with liquidity. +- **Fees 24H** - Represents the total amount of fees collected by all liquidity providers on Invariant over the past 24 hours. + ![24 hours stats](/img/docs/app/stats.png) ### Top tokens -![top tokens](/img/docs/app/top_tokens.png) +- **TVL 24H** - Total amount of presented token locked in all liquidity pools. + + ![top tokens](/img/docs/app/top_tokens.png) ### Top pools - **7-days APY** - (Annual Percentage Yield) - denotes the anticipated annualized rate of return for liquidity to the pool. It reflects the estimated percentage increase in the value of assets deposited into the liquidity pool attributable to trading fees. In calculating APY, Invariant considers solely the volume from active liquidity pools over the last 7 days, separately for each one. -![top pools](/img/docs/app/top_pools.png) \ No newline at end of file +![top pools](/img/docs/app/top_pools.png) diff --git a/docs/docs/tutorial/transaction_priority.md b/docs/docs/tutorial/transaction_priority.md deleted file mode 100644 index 45078b46..00000000 --- a/docs/docs/tutorial/transaction_priority.md +++ /dev/null @@ -1,35 +0,0 @@ ---- -title: Transaction priority - -slug: /transaction_priority ---- - -**Unlock the full potential** of your Solana trading experience with Invariant's settings section. Here, you can **customize your fees** for transactions and tailor transaction confirmation times to match your trading goals. - -![settings](/img/docs/app/settings.png) - -### Transaction priority - -This feature allows you to adjust the transaction fee or priority level when making trades on the Invariant platform. By setting your transaction priority, you can control the speed and likelihood of your transactions being confirmed on the Solana network. - -**Adjust transaction fees and priority levels** to control the speed and likelihood of your transactions being confirmed on the Solana network. By setting your transaction priority, you can ensure your swaps are processed promptly and efficiently, even during periods of high network congestion. - -#### Why is it needed? - -
- Transaction fees, including priority fees on the Solana blockchain, are necessary to incentivize validators to include your transaction in the next block. These fees act like a priority mechanism. Without them, validators might prioritize transactions based on their computational demand, potentially causing delays for low-fee transactions. Priority fees allow users to expedite their transactions by paying a higher fee, ensuring timely processing even during periods of network congestion. -- -![transaction priority](/img/docs/app/transaction_priority.png) - -#### Transaction Priority Levels: - -1. Normal Priority (Max 0.000005 SOL - 1x Market Fee): This is the default priority level, providing standard transaction processing. Transactions at this level typically have lower fees and may experience longer confirmation times during periods of network congestion. - -2. Market Priority (Max 0.001 SOL - 85% Percentile Fees from Last 20 Blocks): Market priority adjusts the fee based on recent network activity, aiming for faster confirmation than normal priority while still maintaining competitive fees. - -3. High Priority (Max 0.05 SOL - 5x Market Fee): High priority offers expedited transaction processing by bidding a higher fee. This level is suitable for users who require faster confirmation times, especially during periods of high network congestion. - -4. Turbo Priority (Max 0.1 SOL - 10x Market Fee): Turbo priority maximizes transaction speed by bidding a significantly higher fee than the market rate. It is ideal for urgent transactions that require immediate confirmation. - -5. Custom Priority (Max 2 SOL): For users who require precise control over transaction priority, the custom priority option allows you to set your desired fee up to a maximum of 2 SOL. This enables flexibility in adjusting the fee according to your specific needs. diff --git a/docs/docs/tutorial/troubleshooting.md b/docs/docs/tutorial/troubleshooting.md new file mode 100644 index 00000000..69d7b316 --- /dev/null +++ b/docs/docs/tutorial/troubleshooting.md @@ -0,0 +1,22 @@ +--- +title: Troubleshooting + +slug: /troubleshooting +--- + +## Can't connect wallet - Chrome browser + +#### Problem: + +Try to click **Contect wallet** button, but nothing happens. + +#### Solution: + +Clear cache & cookies of Chrome browser: + +1. Open chrome dev-tools +2. Go to **Application** tab +3. Go to **Storage** +4. Click **Clear site data** + +![Clear site data](/img/docs/app/problem1.png) diff --git a/docs/sidebars.js b/docs/sidebars.js index 36b41f70..94c86747 100644 --- a/docs/sidebars.js +++ b/docs/sidebars.js @@ -23,7 +23,7 @@ module.exports = { collapsed: true, items: [ 'tutorial/interface', - 'tutorial/transaction_priority', + 'tutorial/priority_fees', 'tutorial/rpc', 'tutorial/networks', 'tutorial/how_to_connect_your_wallet', @@ -33,16 +33,17 @@ module.exports = { label: 'How to add liquidity', link: { type: 'doc', - id: 'tutorial/how_to_add_liquidity', + id: 'tutorial/how_to_add_liquidity' }, items: [ 'tutorial/how_to_add_liquidity/uniform_concentration', 'tutorial/how_to_add_liquidity/price_range' - ], - }, + ] + }, 'tutorial/how_to_claim_fee', 'tutorial/how_to_remove_liquidity', 'tutorial/stats', + 'tutorial/troubleshooting', 'tutorial/faq_tutorial' ] }, diff --git a/docs/static/img/docs/app/bar_chart.png b/docs/static/img/docs/app/bar_chart.png index a4d8884e..2a157cae 100644 Binary files a/docs/static/img/docs/app/bar_chart.png and b/docs/static/img/docs/app/bar_chart.png differ diff --git a/docs/static/img/docs/app/fee_btn.png b/docs/static/img/docs/app/fee_btn.png new file mode 100644 index 00000000..3f29c40a Binary files /dev/null and b/docs/static/img/docs/app/fee_btn.png differ diff --git a/docs/static/img/docs/app/line_chart.png b/docs/static/img/docs/app/line_chart.png index 892d0c96..4293af02 100644 Binary files a/docs/static/img/docs/app/line_chart.png and b/docs/static/img/docs/app/line_chart.png differ diff --git a/docs/static/img/docs/app/liquidity_legend.png b/docs/static/img/docs/app/liquidity_legend.png deleted file mode 100644 index e5fc2e36..00000000 Binary files a/docs/static/img/docs/app/liquidity_legend.png and /dev/null differ diff --git a/docs/static/img/docs/app/pool_position.png b/docs/static/img/docs/app/pool_position.png deleted file mode 100644 index c7ff772f..00000000 Binary files a/docs/static/img/docs/app/pool_position.png and /dev/null differ diff --git a/docs/static/img/docs/app/positions.png b/docs/static/img/docs/app/positions.png new file mode 100644 index 00000000..897bd83c Binary files /dev/null and b/docs/static/img/docs/app/positions.png differ diff --git a/docs/static/img/docs/app/problem1.png b/docs/static/img/docs/app/problem1.png new file mode 100644 index 00000000..1c2865da Binary files /dev/null and b/docs/static/img/docs/app/problem1.png differ diff --git a/docs/static/img/docs/app/rpc_tab.png b/docs/static/img/docs/app/rpc_tab.png new file mode 100644 index 00000000..eaed2f47 Binary files /dev/null and b/docs/static/img/docs/app/rpc_tab.png differ