PancakeSwap lead developer Chef Mochi revealed that PancakeSwap v4 code will be released under an open source license, expected later this year, and the version will launch four key features:
1. Hooks, or externally deployed contracts, allow developers to add customizable add-ons. The add-on allows changing the trade charge type and trade order type (e.g. limit or market order). Hook creators can keep the fees themselves or distribute them to stakeholders.
2. Custom pool types can provide users with multiple types of liquidity pools, aiming to provide better pricing for listed assets. This will help prevent the token’s price from fluctuating significantly during periods of demand or sales, ensuring it is priced more appropriately during market pressures.
3. Singleton, this function can merge all pools into one contract to reduce 99% of deployment costs. Since there is no need to transfer tokens between separate contracts, the gas cost of the swap, or fees paid per blockchain transfer, is further reduced.
4. Flash accounting can reduce gas consumption and centrally settle a large number of transactions. During periods of market volatility, gas fees tend to spike and become expensive, potentially limiting users' ability to conduct transactions. (CoinDesk)