bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 75쪽 중 37쪽
. Flexibility in AMM Designs:** PancakeSwap Infinity supports multiple pool types, including CLAMM and the LBAMM, allowing traders and LP to pick different pool types. This inclusive approach also allows supporting any future assets requiring new pricing curves. Check out this blog to [learn more](https://blog.pancakeswap.finance/articles/everything-you-need-to-know-about-pancake-swap-v4-what-s-in-it-for-developers-traders-liquidity-providers-and-defi-protocols)
<figure><img src="https://2908774936-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MHREX7DHcljbY5IkjgJ-1972196547%2Fuploads%2FcJRmsrxNxlHkbvIM59Lx%2FScreenshot%202024-03-15%20at%2016.16.56.png?alt=media&token=56ba7ce7-2410-4b44-9b67-3e310ac91fbe" alt=""><figcaption></figcaption></figure>
**Q2** How will PancakeSwap Infinity benefit developers and defi protocols?
**Ans:** PancakeSwap Infinity opens up a world of possibilities for developers and DeFi protocols.
**1. Endless Customization Possibilities:** With PancakeSwap Infinity, developers can build Hooks to introduce custom functionalities; from dynamic fees to on-chain limit orders and custom oracles. PancakeSwap Infinity supports deploying new pool types (CLAMM, LBAMM, and any other pool types in the future), enhancing capital efficiency and trading flexibility.
**2. Access to Robust Liquidity and User Base:** With over 1.8 million active users and $2.1 billion in liquidity, developers and DeFi protocols have an unparalleled opportunity to tap into a vast and active community, fostering product development and adoption.
**3. Revenue Generation Opportunities:** Developers can establish a consistent revenue stream through hook fees, allowing them to set fees for utilizing their hooks. By monetizing their innovations with fees, developers can contribute to the growth and development of the PancakeSwap ecosystem. Check out this blog to[ learn more](https://blog.pancakeswap.finance/articles/everything-you-need-to-know-about-pancake-swap-v4-what-s-in-it-for-developers-traders-liquidity-providers-and-defi-protocols)
<figure><img src="https://2908774936-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MHREX7DHcljbY5IkjgJ-1972196547%2Fuploads%2FlKtz9r5Yll58H31uZGX8%2FScreenshot%202024-03-15%20at%2009.40.42.png?alt=media&token=8ccc9e91-f199-43a8-9526-33494565b817" alt=""><figcaption></figcaption></figure>
**Q3** What improvements does PancakeSwap Infinity bring compared to v3?
**Ans:** PancakeSwap Infinity introduces the capability to enhance liquidity pool functionalities with custom features without re-implementing the core protocol. It also supports the implementation of any pricing curve on the go and offers substantial gas savings for users.
**Q4** Will there be any changes to the user interface or user experience in PancakeSwap Infinity?
**Ans:** Users can swap on Infinity through PancakeSwap’s swapping page, just like the usual friendly experience. Traders and liquidity providers have multiple options to add liquidity across supported pool types, including CLAMM and LBAMM.
**Q5** How can the community get involved in testing or providing feedback for PancakeSwap Infinity?
**Ans:** If you're a community member, feel free to share your feedback through our socials on [Telegram](https://t.me/PancakeSwapAnn), [Discord](https://discord.com/channels/897834609272840232/1207724381212770315), and [Twitter](https://twitter.com/PancakeSwap). If you're a developer, join our developer Discord community and share your thoughts.
**Q6** Where can users find more information about PancakeSwap Infinity and stay updated on its development progress?
**Ans:** Visit our official [website](https://pancakeswap.finance/v4?utm_source=v4announcementblog\&utm_medium=blog\&utm_campaign=v4announcementblog\&utm_id=v4announcementblog) , read our [whitepaper](https://github.com/pancakeswap/pancake-v4-core/blob/main/docs/whitepaper-en.pdf) , and follow us on social media for the latest updates and developments. If you're a developer, join our developer Discord community.\
\
**Q7** What is the licensing mechanism for PancakeSwap Infinity?
**Ans:** PancakeSwap Infinity is committed to open-source principles. Our code will be released under an open-source license, empowering developers to innovate freely. However, As a part of our [Affiliate initiative](https://forum.pancakeswap.finance/t/discussion-on-pancakeswap-affiliates-a-multichain-expansion-strategy/395), DeFi protocols forking PancakeSwap will be warmly welcomed and officially recognized by the Kitchen.\
\
**Q8** How does PancakeSwap Infinity reduce gas fees?
**Ans:** PancakeSwap Infinity leverages the Singleton and Flash accounting mechanisms to reduce gas fees significantly. By consolidating all pools into a single contract (singleton), multi-pool transactions are simplified, making them more cost-effective. Flash Accounting replaces individual transfers with net balances, computed collectively at the end of each transaction, resulting in substantial gas savings. ERC-6909 further reduces gas for frequent users by letting users keep their funds within the protocol and use them when required, eliminating transfers to/from their wallets.\
\
**Q9** What are Hooks in PancakeSwap Infinity, and how do they enable innovation?
**Ans:** Hooks are customizable add-ons that enhance liquidity pool functionality, allowing developers to introduce custom features and fee management options. Deployed externally, Hooks can execute predefined logic during key pool actions, offering endless possibilities, including dynamic fees, order types, custom oracles, and active liquidity management strategies. Check out this blog to [learn more](https://blog.pancakeswap.finance/articles/why-should-developers-build-on-pancake-swap-v4-and-how-to-build-hooks)\
\
**Q10** What opportunities does PancakeSwap Infinity present for developers?
**Ans:** Developers can build innovative solutions, generate revenue through hook fees, and tap into PancakeSwap's extensive user base and deep liquidity. Read our dedicated [blog post](https://blog.pancakeswap.finance/articles/why-should-developers-build-on-pancake-swap-v4-and-how-to-build-hooks) on why developers should build on PancakeSwap.
**Q11** How does PancakeSwap Infinity contribute to the broader DeFi ecosystem?
**Ans:** PancakeSwap Infinity aims to address the shortcomings of current AMMs, enhance the DEX experience, and evolve into the highest-functionality DeFi platform supported by our open-source approach. Read our Head Chef, Chef Mochi's [vision for Infinity](https://blog.pancakeswap.finance/articles/chef-mochi-s-vision-for-pancake-swap-v4-a-leap-forward-in-de-fi-innovation) to learn more\
\
**Q12** Where can we find the hook template repository?
**Ans:** Hooks template can be found at <https://github.com/pancakeswap/infinity-hooks-template> and example hooks at <https://github.com/pancakeswap/infinity-hooks>\
\
**Q13** Can you explain the life cycles of hooks and their examples?
**Ans:** Hooks can be implemented before / after 5 key actions namely initialize, swap, addLiquidity, removeLiquidity, donate. For instance, when a user initiates a swap, the PoolManager contract checks if a beforeSwap hook callback exists. If it does, the logic under the beforeSwap method in the hook contract is executed; otherwise, the swap proceeds as usual. After the swap is completed, the same process occurs for the afterSwap callback.\
\
**Q14:** Do we need to perform address mining to ensure hooks are deployed at a specific address?\
**Ans:** Hooks can be deployed on any address like other contracts. Callback permissions are set at PoolKey. For more info, please see the faq for hooks here
<https://developer.pancakeswap.finance/contracts/infinity/overview/custom-layer-hook>\
\
**Q15:** How can we verify a hook contract on etherscan?
**Ans:** If you are using foundry, you can refer to the foundry guide here <https://book.getfoundry.sh/reference/forge/forge-verify-contract>\
Or if you are using hardhat, refer to the hard guide here <https://hardhat.org/hardhat-runner/docs/guides/verifying>\
\
**Q16:** Should we use foundry or hardhat for hook development?
**Ans:** The template <https://github.com/pancakeswap/infinity-hooks-template> is based on foundry; thus, we advise using foundry. Besides that, the foundry has been growing in popularity!
**Q17:** What are pool keys?
**Ans:** PoolKey is a struct that describes each pool. See more [here](https://developer.pancakeswap.finance/contracts/infinity/overview/amm-layer-poolmanager).\
\
\
PancakeSwap Infinity represents a significant milestone in the DeFi space, offering unparalleled benefits for traders, developers, liquidity providers, and the broader community. We're excited to embark on this journey with you and look forward to shaping the future of DeFi together. We hope this FAQ has answered your questions about PancakeSwap Infinity. If you have any further questions, feel free to reach out to us via ([Twitter](https://twitter.com/PancakeSwap), [Discord](https://discord.com/channels/897834609272840232/1207724381212770315), and [Telegram](https://t.me/PancakeSwap)) or check our Dev [documentation](https://developer.pancakeswap.finance).
# Limit Orders and TWAP FAQ
{% hint style="info" %}
Use the sidebar to quickly find the answers to your questions!
{% endhint %}
## Limit Orders and TWAP
Please refer to FAQ provided by Orbs:
<https://www.orbs.com/dtwap-and-dlimit-faq/>
## Limit V2 (Deprecated)
### Why I can’t find my orders?
V2 limit orders is now deprecated, please access using this link:
<https://pancakeswap.finance/limit-orders>
### Why was my order not executed?
Limit orders are executed when they reach their desired price, however, due to gas fluctuations, the actual execution price might vary from the price you specified on the interface. Usually, the execution price and the desired price should be almost identical, however, if you submitted a particularly small order (\~<1000$) the execution price might be slightly higher to account for fees.
Therefore your order may not be executed because:
* It wasn’t possible to fill the whole order at the desired price and amount due to price impact.
* One of the tokens in the limit order has fee on transfer (see below).
**Before submitting an order, please consult the UI denoting the real execution price.**
{% hint style="info" %}
Please note: the order history table gets the data from Subgraph and can show slightly delayed information.
{% endhint %}
### Can I submit a limit order for tokens with fee on transfer?
**No.** The tokens with a fee on transfer should not be used with limit orders. Proceed at your own risk.
### How do I set slippage while using limit orders?
Slippage is not relevant in limit orders. You specify input amount (e.g. 1000 CAKE) and output amount (e.g. 20 BNB), Limit orders guarantee that you will receive no less than the specified output amount (20 BNB) for your input amount (1000 CAKE) if the price for the pair reaches the desired price. **Note that tokens with fee on transfer should not be used with limit orders** (read above)
### The real execution price shows "never executes". What's this?
It basically means that you're trying to swap a very small amount of tokens therefore there are not enough tokens to be accounted for the gas fee. In general, you need to increase the amount of the "input" field to get rid of this error.
### Is there an expiration date for my limit orders?
Open orders have an expiration date of 90 days. After your order is expired it might never be executed. Please cancel your order once expired.
A customizable expiration date feature is planned for the near future.
### Why can’t I create limit orders below the market price?
To sell below market price, you need **Stop Limit Orders**, not limit orders. Stop Limit Orders feature is coming soon.
### I made an order and it is not shown in the order table or stuck at “pending” status.
The order history comes from the subgraph and therefore might show slightly delayed information. Usually, delays are no longer than a couple of minutes at worst. Please refer to the subgraph indicator at the bottom right corner of the order history table.
# Bridging
Bridge CAKE between Ethereum, BNB Chain, Aptos, and many more
<figure><img src="https://2908774936-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MHREX7DHcljbY5IkjgJ-1972196547%2Fuploads%2FjH0cjVB4GKVNBsAFsRO9%2Fimage.png?alt=media&token=b1d6a4ea-4a06-45ea-84fc-74982b507ef8" alt=""><figcaption></figcaption></figure>
{% hint style="success" %}
Bridging to/from EVMs (New site): <https://pancakeswap.finance/bridge>
Bridging to/from Aptos (V1 Bridge): <https://bridge.pancakeswap.finance/>
{% endhint %}
## What is bridging in crypto?
* Bridging in crypto refers to the process of transferring assets between different blockchain networks.
* It enhances interoperability, allowing for data and asset transfers across various networks.
\
Here are some reasons you may want to bridge:
* Buy different cryptocurrency tokens
* Mint an NFT only available on a specific network
* Save money with cheaper transactions
* Use a dapp only available on another network
***
## CAKE, a multichain token
With our multichain expansion and deployment, CAKE is now a multichain token that is native to BNB Chain, but also available across Base, Arbitrum, Solana, Ethereum, ZKsync, Linea, opBNB, Monad, and Aptos.
CAKE on any of the other chains is equal to CAKE on BNB Smart Chain. It can always be bridged between these chains at a 1:1 ratio and without any fee in CAKE.
**Please note that there is only one CAKE.** There are no different versions of CAKE on different chains. The total supply of CAKE across all blockchains is capped at 400M, as outlined in this [vote proposal](https://pancakeswap.finance/voting/proposal/0xc988547f7b6c435764c840623685b0c2d13ebcc91d1672d39c51b6d14207f9a5).
***
## What is the PancakeSwap Bridge?
The PancakeSwap Bridge is a convenient, in-app tool that allows you to move assets between different blockchains directly through the PancakeSwap interface. Instead of visiting external bridge sites, you can bridge supported tokens between chains like BNB Chain, Ethereum, Base, Arbitrum, and more—all from one place.
The PancakeSwap Bridge is powered by trusted third-party providers and works as an **aggregator**—selecting the best route based on price, speed, and reliability.
To learn how to bridge CAKE, check out the tutorials and FAQ in the following sections.
***
## 🔗 How It Works
### Bridging via Aggregators
The PancakeSwap Bridge acts as a smart layer over trusted third-party bridge protocols. When you initiate a bridge transfer, PancakeSwap:
* Checks multiple integrated bridges for optimal routes
* Sends your transaction to the selected provider
Bridging is non-custodial—your assets do not touch PancakeSwap custody. Transfers are handled directly by the bridge providers.
### Supported Bridge Providers
We currently integrate with:
* deBridge
* cBridge
* LayerZero
* Stargate
* Meson
* Mayan
> Note: Each provider has different bridging mechanics, supported chains, fees, and limits.
***
### Supported Chains and Tokens
#### Chains Currently Supported
* BNB Chain
* Base
* Arbitrum
* Ethereum
* opBNB
* ZKsync
* Linea
* Monad
* Robinhood
* Solana
* Aptos (V1 site)
#### Tokens Available for Bridging
Available tokens vary by chain and route. Common supported tokens include (but are not limited to):
* CAKE
* USDT
* USDC
* ETH
***
#### Limitations & Exclusions
Some tokens may not be supported due to bridge limitations or liquidity constraints. These have been filtered out for the best user experience. For example:
**For cBridge:**
* Wrapped BNB (BNB Chain)
* USDT (Arbitrum)
* USDC.e (Arbitrum)
**For deBridge:**
* cUSDCv3 (Ethereum)
* cUSDCv3 (Polygon)
* cUSDCv3 (Arbitrum)
*The above are examples. The actual available tokens per chain are shown directly in the Bridge UI.*
***
### 💸 Fees and Costs
#### Bridge Fees
* Charged by the underlying bridge provider
* Typically includes a small fee per transfer
* Clearly shown before you confirm your bridge
***
#### Gas Costs
* You pay gas fees on the **source chain** to initiate the transaction
* Some providers may also require gas on the **destination chain**
* **Tip:** Always keep native tokens (e.g., ETH, BNB) on both sides of the bridge
***
#### Minimum Amounts & Restrictions
Some bridge routes enforce:
* **Minimum/maximum bridge amounts** (e.g., minimum of 10 USDC)
* **Supported token decimals or formats** (e.g., only ERC-20 tokens)
The UI will automatically detect and display invalid transfers.
***
### ⏳ Transaction Times & Tracking
#### How Long Does Bridging Take?
Bridge transfers typically complete within a few **minutes**, depending on:
* Source and destination chains
* Network congestion
* Bridge provider efficiency
#### Tracking Your Transfer
Once submitted, you can view the transaction status through provider-specific explorers:
* [deBridge Explorer](https://app.debridge.finance/orders)
* [LayerZero Scan](https://layerzeroscan.com/)
* [Stargate Explorer](https://stargate.finance/)
* [CelerScan (cBridge)](https://celerscan.com/)
If a transaction is stuck for a long time, check the relevant explorer or reach out to our admins via [social channels](https://docs.pancakeswap.finance/welcome-to-pancakeswap/contact-us/social-accounts) for [help](https://docs.pancakeswap.finance/welcome-to-pancakeswap/contact-us/faq/help).
***
### 🧠 Tips Before You Bridge
* **Keep gas tokens on both chains** (e.g., ETH + BNB)
* **Start small** if it’s your first time bridging
* Avoid bridging during periods of high chain activity (can result in higher gas fees)
* Confirm token compatibility on both chains
* Always double-check source and destination networks
***
### Additional: CAKE Omni-chain Fungible Token (OFT) Addresses
1. **BNB Chain**
* `cake`: `0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82` ([link](https://bscscan.com/address/0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82))
* `cakeOFTProxy`: `0xb274202daBA6AE180c665B4fbE59857b7c3a8091` ([link](https://bscscan.com/address/0xb274202daba6ae180c665b4fbe59857b7c3a8091#code))
2. **Ethereum**
* `cakeOFT`: `0x152649eA73beAb28c5b49B26eb48f7EAD6d4c898` ([link](https://etherscan.io/address/0x152649eA73beAb28c5b49B26eb48f7EAD6d4c898))
3. **Aptos**
* `cakeOFT`: `0x159df6b7689437016108a019fd5bef736bac692b6d4a1f10c941f6fbb9a74ca6` ([link](https://explorer.aptoslabs.com/account/0x159df6b7689437016108a019fd5bef736bac692b6d4a1f10c941f6fbb9a74ca6/modules/run/oft/set_fee?network=mainnet))
4. **Arbitrum**
* `cakeOFT`: `0x1b896893dfc86bb67Cf57767298b9073D2c1bA2c` ([link](https://arbiscan.io/address/0x1b896893dfc86bb67Cf57767298b9073D2c1bA2c))
5. **zkSync**
* `cakeOFT`: `0x3A287a06c66f9E95a56327185cA2BDF5f031cEcD` ([link](https://explorer.zksync.io/address/0x3A287a06c66f9E95a56327185cA2BDF5f031cEcD#contract))
6. **Linea**
* `cakeOFT`: `0x0D1E753a25eBda689453309112904807625bEFBe` ([link](https://explorer.linea.build/address/0x0D1E753a25eBda689453309112904807625bEFBe))
7. **Base**
* `cakeOFT`: `0x3055913c90Fcc1A6CE9a358911721eEb942013A1` ([link](https://basescan.org/address/0x3055913c90Fcc1A6CE9a358911721eEb942013A1#code))
8. **opBNB**
* `cakeOFT`: `0x2779106e4F4A8A28d77A24c18283651a2AE22D1C` ([link](https://opbnbscan.com/address/0x2779106e4F4A8A28d77A24c18283651a2AE22D1C?tab=Contract\&p=1))
9. **Monad**
* `cakeOFT`: `0xF59D81cd43f620E722E07f9Cb3f6E41B031017a3`
10. **Solana**
* `cakeOFT`: `4qQeZ5LwSz6HuupUu8jCtgXyW1mYQcNbFAW1sWZp89HL`
# How to Bridge – Between EVMs
Bridge between EVMs like Ethereum and BNB Chain
{% hint style="success" %}
**EVMs:** EVM chains are blockchains that use the Ethereum Virtual Machine to run Ethereum-compatible smart contracts and dApps. Examples include Ethereum, BNB Smart Chain, etc.
{%프로젝트로 돌아가기