PancakeSwap 백서

PancakeSwap

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 75쪽 중 39쪽

-chain---my-tokens-did-not-arrive-in-my-target-wallet-but-have-left-my-origin-w" id="i-have-sent-tokens-to-chain---my-tokens-did-not-arrive-in-my-target-wallet-but-have-left-my-origin-w"></a> You either a) need to redeem them, or, if redeeming was already successful, b) add them to your wallet: **a) Redeeming:** * Go to <https://portalbridge.com/#/redeem> * You need to enter your source chain and the corresponding transaction id (which you can find in your wallet, or with your address in the blockchains explorer) <figure><img src="https://lh7-us.googleusercontent.com/v4gdm8TKNfhuq8cRaHWwn-EuJKCuzWSXl5zt76DDHq3N6TBqP-ntLVZNS5CMbIUBvtE2qI2eCpw_ean4hSicvrLCYhlz8TI5WxgzN3zBpo2wqInZvYuaXCcxU3k6nF6l-On05Ak4vjdZPLhJcQZXybc" alt=""><figcaption></figcaption></figure> * Click Recover * Click Redeem and accept the wallet approval **b) Add them to your wallet:** **Metamask:**[**​**](https://portalbridge.com/docs/faqs/troubleshooting#metamask) * In the Metamask assets tab, click import tokens * The contract address can be found in the relevant block explorer transaction and clicking the token name. When you click the token name, it will open a new window and the contract address is on the right-hand side in the profile summary. * You’ll also need a symbol - this can be anything you want to recognize the token as. * Click add custom token See the video tutorial - How to add a token into your Metamask wallet [here.](https://portalbridge.com/docs/video-tutorials/how-to-manually-add-tokens-to-your-wallet#metamask) ### I bridged X token but cannot swap it now. No DEX has liquid markets,[​](https://portalbridge.com/docs/faqs/troubleshooting#i-bridged-x-token-but-cannot-swap-it-now-no-dex-has-liquid-markets) <a href="#i-bridged-x-token-but-cannot-swap-it-now-no-dex-has-liquid-markets" id="i-bridged-x-token-but-cannot-swap-it-now-no-dex-has-liquid-markets"></a> You bridged a token, which has no liquidity on the target chain. You will need to use Portal bridge to bridge this one back. You can do this by pasting the token contract address (which you can find in your wallet or with your address in the blockchains explorer) into the Portal “select a token” search field. You can find a comprehensive overview of liquid markets [here](https://portalbridge.com/docs/faqs/liquid-markets). #### How can I redeem my tokens on the target chain?[​](https://portalbridge.com/docs/faqs/troubleshooting#how-can-i-redeem-my-tokens-on-the-target-chain) <a href="#how-can-i-redeem-my-tokens-on-the-target-chain" id="how-can-i-redeem-my-tokens-on-the-target-chain"></a> If you've accidentally refreshed the page during the transfer process or did not redeem your tokens, you can follow the tutorial [here](https://portalbridge.com/docs/tutorials/how-to-use-recovery-workflow). # Liquidity Pools ![](https://2908774936-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MHREX7DHcljbY5IkjgJ-1972196547%2Fuploads%2FCl6AVjI4eyyuvSNTNMTt%2Fliquidity-header.png?alt=media\&token=a1b928e3-b1bd-463c-8901-9f5c397bae39) ## Exchange V3 <a href="#id-03e94594-5a75-4687-b260-0dc69574b953" id="id-03e94594-5a75-4687-b260-0dc69574b953"></a> In the new Exchange V3, liquidity will be managed in the form of non-fungible positions. You will still earn a share in the fees while providing liquidity. When you add your token to a Liquidity Pool you will receive Liquidity Provider NFT tokens and share in the fees. ### **Non-fungible liquidity positions** <figure><img src="https://2908774936-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MHREX7DHcljbY5IkjgJ-1972196547%2Fuploads%2FV4N1Akb2fb9LG1oTgF9N%2Fimage.png?alt=media&amp;token=a6aa534f-9a02-43c4-a8f4-ac97ae7023de" alt=""><figcaption></figcaption></figure> In V3, liquidity providers now have more control over what price range they want to deploy their liquidity. So, when you add your token to a Liquidity Pool in V3, you will create a new non-fungible liquidity position with its unique settings. Therefore, in V3, liquidity positions are NFTs. Please note that these NFTs are transferable, and they represent the ownership of the underlying assets and the trading fees they earned. In V3, trading fees will no longer be automatically compounded in the position. You can manually claim them on each of the position detail pages. You can redeem your funds at any time by removing your liquidity. ### **Active liquidity and price ranges** In V3, liquidity providers can configure their positions to only provide liquidity when the price is within a certain range. If the trading price moves out of the range, the position will consist of only one type of token in the pair and become inactive. Inactive liquidity positions will not participate in trading or earn any trading fees. ### **Concentrated liquidity** In V3, because of liquidity providers can concentrate their token deposits to provide liquidity only within a specific price range. With the same amount of underlying assets, V3 can support a much bigger trade. It results in a much higher relative liquidity level when compared to V2. And liquidity providers can earn more trading fees with the same amount of capital. Here is an example: > Baller and Claire both provided liquidity in CAKE/USDT pool with $1,000 USD worth of token assets. The current price of CAKE is 5 USDT. > > Similar to PancakeSwap v2, Baller provided his liquidity across the entire price range. Therefore he deposited all of his capital, 500 USDT and 100 CAKE. > > Claire utilize the new concentrated liquidity feature in PancakeSwap v3 and created a position with a price range of 2 to 12.5 USDT per CAKE. She deposited 185 USDT and 37 CAKE, worth a total of $370. She is now able to spend the remaining $630 elsewhere, like locking CAKE in the Syrup pool to enjoy high CAKE yield while receiving a series of PancakeSwap ecosystem benefits. > > As long as CAKE stays within the price range of 2 to 12.5, both Baller and Claire will receive the same amount of trading fee rewards while Claire deposited way less capital to the liquidity pool. ### **Trading fees** Providing liquidity gives you a reward in the form of trading fees when people use your liquidity pool to complete swaps. Whenever someone trades on PancakeSwap, for each hop (swap) in each Exchange V3 liquidity pool, depending on the liquidity pool fee tier, the trader pays a fee ranging from 0.01% to 1%. Their fee rates and fee breakdowns are shown as follows: <details> <summary>Trading Fees (EVM)</summary> | Fee Component / Fee tier | 0.01% | 0.05% | 0.25% | 1% | | ------------------------ | ----- | ----- | ----- | --- | | Liquidity Provider | 67% | 66% | 68% | 68% | | CAKE Burn | 15% | 15% | 23% | 23% | | Treasury | 18% | 19% | 9% | 9% | For example, in a 0.25% fee tier pool: * Among all the active (in-range) liquidity positions, there are a total of 10 CAKE and 10 BNB tokens. * Someone trades 1 CAKE for 1 BNB. * Someone else trades 1 BNB for 1 CAKE. * The liquidity providers who are in the range providing active liquidity earned a total of 0.0017 CAKE and 0.0017 BNB from the trades. * Positions with price ranges that are not covering the current price, therefore being inactive, will not contribute to trading or earn any fees. </details> <details> <summary><strong>Trading fees (Solana)</strong></summary> **Available V3 CLMM Pool Fee Tiers:**\ 0.01%, 0.02%, 0.03%, 0.04%, 0.05%, 0.1%, 0.15%, 0.16%, 0.18%, 0.2%, 0.25%, 0.4%, 0.6%, 0.8%, 1%, 2%, 3%, 4% **Note:** The fee **distribution remains the same** across all fee tiers. | Fee Component | % of Total Swap Fee | Description | | ----------------------------- | ------------------- | ------------------------------------------------------------- | | **LPs (Liquidity Providers)** | 84% | Earned by LPs who provide liquidity in the active price range | | **Burn** | 8% | Permanently removed to reduce CAKE supply | | **Treasury** | 8% | Allocated to the PancakeSwap protocol treasury | **Example: Fee Distribution in a 0.25% CAKE/SOL Pool** 1. **Pool Setup:** Total active liquidity: 10 CAKE and 10 SOL (in-range positions). 2. **Swaps Occur:** * User A swaps 1 CAKE → 1 SOL. * User B swaps 1 SOL → 1 CAKE. 3. **Total Fees Collected:** * 0.25% per trade × 2 trades = **0.005 CAKE + 0.005 SOL**. 4. **Fee Distribution:** * **84% to LPs:** 0.0042 CAKE + 0.0042 SOL * **8% to Burn:** 0.0004 CAKE + 0.0004 SOL * **8% to Treasury:** 0.0004 CAKE + 0.0004 SOL 5. **LP Earnings:** * Only **in-range LPs** earn fees. Fees are distributed proportionally based on each LP’s share. * **Out-of-range LPs** earn **no fees**. </details> ### **Earning CAKE** To make being a liquidity provider even more worth your while, you can also put your liquidity positions to work whipping up some fresh yield on the [CAKE Farms](https://pancakeswap.finance/liquidity/pools), while still earning trading fee rewards. *** ## Exchange V2 ### LP Tokens <figure><img src="https://2908774936-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MHREX7DHcljbY5IkjgJ-1972196547%2Fuploads%2FoR9fnSaTCBL72C9rPxMN%2Fimage.png?alt=media&amp;token=706ad51b-5358-4635-974f-c83223270b94" alt=""><figcaption></figcaption></figure> As an example, if you deposited **CAKE** and **BNB** into a Liquidity Pool, you'd receive **CAKE-BNB LP** tokens. The number of LP tokens you receive represents your portion of the CAKE-BNB Liquidity Pool. You can also redeem your funds at any time by removing your liquidity. ### **Earning trading fees** Whenever someone trades on PancakeSwap, for each hop (swap) in each Exchange V2 liquidity pool, the trader pays a fixed 0.25% fee, **of which 0.17%** is added back to the Liquidity Pool in a form of trading fees. ### **Earning CAKE** The old Exchange V2 will be running in parallel with the new Exchange V3. So, some trading pairs will remain on PancakeSwap Exchange V2 and have their corresponding V2 Farms. Please check the tags to identify the exchange versions. ## Impermanent Loss Providing liquidity is not without risk, as you may be exposed to impermanent loss. [“Simply put, impermanent loss is the difference between holding tokens in an AMM and holding them in your wallet.” - Nate Hindman](https://blog.bancor.network/beginners-guide-to-getting-rekt-by-impermanent-loss-7c9510cb2f22) # How to Add/Remove Liquidity (EVM) ![](https://2908774936-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MHREX7DHcljbY5IkjgJ-1972196547%2Fuploads%2F8d7YiF0ZnZyTwPvMTXkm%2Fhow-to-add-remove-liquidity-header.png?alt=media\&token=0edefab3-018b-4d7b-9754-d858035bd846) "Liquidity" is central to how PancakeSwap's Exchange works. You can add liquidity for any token pair by staking both through the Liquidity page. In return for adding liquidity, you'll receive trading fees for that pair, and receive either an NFT or LP Tokens you can stake in [Farms](https://pancakeswap.finance/farms) to earn CAKE rewards! ## Exchange V3 To provide liquidity, you’ll need to commit an amount of any token pair you like. Your lowest value (in USD) of the two tokens will be the limit to the liquidity you can provide. You can easily trade for any tokens you need. Visit our [How to Trade on PancakeSwap](https://docs.pancakeswap.finance/trade/pancakeswap-exchange/trade-guide) guide if you need to. In this example, we will add V3 liquidity using ETH and USDC. 1 - Visit the [Liquidity](https://pancakeswap.finance/liquidity) page. <figure><img src="https://2908774936-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MHREX7DHcljbY5IkjgJ-1972196547%2Fuploads%2FXlQ9DHslpRQXnAFv7zHM%2Fimage.png?alt=media&amp;token=62acbadf-9360-4fc1-ae27-81611f740891" alt=""><figcaption></figcaption></figure> 2 - Click the “Add Liquidity” button. 3 - Using the top left Input, choose the two tokens in the trading pair you want to add liquidity. Here, we are going to use ETH and USDC as an example. ![](https://2908774936-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MHREX7DHcljbY5IkjgJ-1972196547%2Fuploads%2FZ0PFmLUsl5bj1Sl3ihMZ%2Fimage.png?alt=media\&token=d73ef61e-3635-4bca-a4f3-ff4c563fdec9) 4 - The interface will automatically choose the most popular trading fee tier and configure the price range for you. 5 - You can confirm the version as well as the fee tier of the liquidity pool you are providing by looking for the “V3 LP - x% fee tier” displays. ![](https://2908774936-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MHREX7DHcljbY5IkjgJ-1972196547%2Fuploads%2F6EYmsa3lV0AQYE9pUGKv%2Fimage.png?alt=media\&token=39c82614-d28a-4850-a3f6-7cbf1a769554) * If you want to customize the fee tier, click “More”, and choose the desired fee tier. * Please note that it is always advisable to provide liquidity to the most popular fee tier. 6 - You can review and confirm the price range on the right-hand side displays. ![](https://2908774936-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MHREX7DHcljbY5IkjgJ-1972196547%2Fuploads%2FaJM9lnFY4Qdf5kwm3VkG%2Fimage.png?alt=media\&token=87743e39-ed2e-45f7-b560-979f53d03775) * The chart shows the level of liquidity across all the price ranges. You can zoom in and out using the magnifier buttons. You can pan and navigate the chart by dragging the bottom x-axis. * If you want to customize the price range. Simply drag the handles, click the + and - buttons on the two prices, or click the two price numbers and enter them manually. * Although it is not advisable, you can provide your liquidity to the whole price range by clicking the “Full Range” button. 7 - Enter an amount on one of the tokens under “Deposit Amount”. The other should be calculated and filled automatically. If one of the tokens does not have enough balance. You will see an error and the button is greyed out. Please enter a lower amount to proceed or use the “MAX” button to fill in the maximum available value. ![](https://2908774936-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MHREX7DHcljbY5IkjgJ-1972196547%2Fuploads%2F1aC6GzBDtWhZJdanEVVS%2Fimage.png?alt=media\&token=d20c2c3f-fbab-41e2-92a2-ff244baaced3) 8 - Click the “Enable USDC” button. If you are adding liquidity against tokens other than ETH, you might need to click enable twice for each token in your pair. Your wallet will ask you to confirm the action. ![](https://2908774936-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MHREX7DHcljbY5IkjgJ-1972196547%2Fuploads%2FJlnFuYaB1GgnGfeSZwMn%2Fimage.png?alt=media\&token=ddab4789-1358-432f-8bdb-d4a4d197f3d3) 9 - The “Add” button will then light up. Click to proceed. ![](https://2908774936-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MHREX7DHcljbY5IkjgJ-1972196547%2Fuploads%2Fr7VBGHchI0Ic9CO10Lhw%2Fimage.png?alt=media\&token=d59cf44d-d331-4ae8-89c3-8fe873d965f4) 10 - A new pop-up window will appear to preview your liquidity position. If everything looks good, click “Add” again to proceed. ![](https://2908774936-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MHREX7DHcljbY5IkjgJ-1972196547%2Fuploads%2FWm07OS7WVME37apeZhcV%2Fimage.png?alt=media\&token=42caea01-7294-4423-b50e-2e51785ab67f) 11 - Your wallet will ask you for confirmation. Confirm your transaction from your wallet. 12 - Soon after, you will see your new liquidity position on the “My Liquidity” page. And you will be able to check its detail by clicking on the position. <figure><img src="https://2908774936-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MHREX7DHcljbY5IkjgJ-1972196547%2Fuploads%2FtKYjjxDN87z5MlgRSxTy%2Fimage.png?alt=media&amp;token=1748e443-c8e9-4216-be33-9ed293756745" alt=""><figcaption></figcaption></figure> ### **Remove liquidity** To remove liquidity. 1 - Visit the [Liquidity](https://pancakeswap.finance/liquidity) pag&#x65;**.** <figure><img src="https://2908774936-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MHREX7DHcljbY5IkjgJ-1972196547%2Fuploads%2F5ENIQRmszaU2DZeNwhKE%2Fimage.png?alt=media&amp;token=532394a9-6c24-46df-8133-e29a7fb22b01" alt=""><figcaption></figcaption></figure> 2 - Click on the position you want to remove liquidity from under “Your Liquidity". You may use the filter to quickly check all the V3 liquidity positions. ![](https://2908774936-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MHREX7DHcljbY5IkjgJ-1972196547%2Fuploads%2Fv1D1t5vMpbaxPehXwokU%2Fimage.png?alt=media\&token=bd1416a7-5586-4c21-8d6b-709e4bc83a5f) 3 - Click “Remove”. A new window will appear. ![](https://2908774936-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MHREX7DHcljbY5IkjgJ-1972196547%2Fuploads%2Fl6fHbZscfB9zuvn6aSHJ%2Fimage.png?alt=media\&token=d611b2b2-bc63-4ab4-bc32-aa5c8641e457) 4 - Use the buttons or slider to choose how much liquidity you want to remove. Choose “MAX” to remove all of your liquidity from this pair. 5 - Click “Remove” to proceed. 6 - A window will appear showing how many tokens you will receive. Click “Remove” again. Your wallet will ask you to confirm the action. 7 - After the transaction is confirmed. You will receive two of the tokens from your pair. And if you haven't removed all of your liquidity, your remaining liquidity value will be updated on the liquidity page. ## Exchange V2 ### Add Liquidity In this example, we will add V2 liquidity using BNB and CAKE. {% hint style="warning" %} Please note that the example is only for illustrative purposes, CAKE/BNB trading pair has been migrated to V3. Please always provide V3 liquidity unless one of the underlying tokens does not support Exchange V3. Or the majority of the liquidity for the token pair has not been migrated. {% endhint %} 1. Visit the [Liquidity](https://pancakeswap.finance/liquidity) page. 2. Click the “Add Liquidity” button. 3. Using the top left Input, choose the two tokens in the trading pair you want to add liquidity. Here, we are going to use BNB and CAKE as an example. 4. The interface will default to adding V3 liquidity with a few exceptions: 1. If the trading pair has an active PancakeSwap V2 Farm, it will default to adding V2 liquidity. 2. If the trading pair has an existing V2 liquidity pool, it will present a “Add V2 Liquidity” link. Simply click to switch to adding V2 liquidity. 5. Confirm you are now adding V2 liquidity by looking for the “V2 LP - 0.25 fee tier” displays. 6. Enter an amount on one of the tokens under “Deposit Amount”. The other should be calculated and filled automatically. If one of the tokens does not have enough balance. You will see an error and the button is greyed out. Please enter a lower amount to proceed or use the “MAX” button to fill in the maximum available value. 7. Click the “Enable CAKE” button. If you are adding liquidity against tokens other than BNB, you might need to click enable twice for each token in your pair. Your wallet will ask you to confirm the action. 8. The “Add” button will then light up. Click to proceed. 9. Your wallet will ask you for confirmation. Confirm your transaction from your wallet. 10. Soon after, you will see your LP Token balance on the liquidity page, among other liquidity positions from V3 and StableSwap. ### **Remove liquidity** To remove liquidity. 1\. Visit the [Liquidity page](https://exchange.pancakeswap.finance/#/pool)**.** 2\. Click on the pair you want to remove liquidity from under “Your Liquidity". You may use the filter to quickly check all the V2 liquidity positions. 3\. Click “Remove”. A new modal will appear. 4\. Use the buttons or slider to choose how much liquidity you want to remove. Choose “MAX” to remove all of your liquidity from this pair. 5\. Click “Enable”. Your wallet will ask you to sign the actio&#x6E;**.** 6\. The “Remove” button will light up. Click to proceed. 7\. A window will appear showing how many tokens you will receive. Click “Confirm”. You
프로젝트로 돌아가기