In the early days of DeFi, swapping tokens was revolutionary — but it was also rigid. Every trade followed the same rules, applied the same fees, and gave users the same experience, no matter who they were or how they used the protocol. But DeFi has evolved, and today, we’re thrilled to share a major leap forward in that evolution.
Brevis-supported hooks are now live on PancakeSwap Infinity (Previously PancakeSwap v4), bringing a new era of programmable, trustless, and user-aware experiences to DEXs.
A New Era of Customization: Hooks Meet Brevis
With PancakeSwap Infinity, hooks became the centerpiece of protocol-level extensibility.
Hooks are externally deployed contracts that seamlessly plug into AMM actions like swapping, adding/removing liquidity, and more: enabling everything from dynamic fees and custom oracles to order types and auto-rebalancing logic. Though deployed outside of the core protocol, hooks interact directly with pool logic, which opens up endless composability without compromising security.
But as powerful as hooks are, they also introduce a big question: How can hooks tap into complex computations over large volumes of historical on-chain data, while remaining trustless and secure?
That’s where Brevis comes in.
Brevis: Trustless Computation for Dynamic DeFi Logic
At its core, Brevis is an efficient, verifiable off-chain computation engine powered by cutting-edge zero-knowledge (ZK) proof systems. It allows a dApp to run complex logic cheaply off-chain and prove the results on-chain, thus bridging the gap between expressive application logic and the rigid time and cost constraints of blockchain. With Brevis, you can easily build scalable, trustless features once thought too complex or costly for on-chain execution. By offloading data-intensive logic off-chain and proving correctness on-chain, Brevis enables dramatic gas cost savings, advanced data-driven features, full composability and modularity, as well as L1-level security guarantees.
Built on top of Brevis ZK proofs, the Brevis Portal (contact us to get whitelisted) is a hook deployment platform that helps developers and pool creators to configure, deploy, and manage data-driven hooks that integrate directly into PancakeSwap Infinity pools. These Brevis-supported hooks can dynamically adjust swap fees or LP rewards based on trustless computation over days or months of on-chain historical transaction data. This data-driven approach in pool design enables not only deeper customization but also a vastly improved UX for users: Imagine getting a swap fee discount automatically, just because you’ve been a loyal trader — without needing to stake, sign up, or trust any third party.
Launch Hooks: Rewarding Loyalty, Powering Precision
To kick things off, Brevis and PancakeSwap are collectively launching two types powerful hooks, both configured via the Brevis Portal and powered by ZK-proven transaction data and computation:
- Token Holder Discount Hook: A BeforeSwap hook that checks your average token balance over a time window. If you’ve been holding a particular ERC-20 token — say, CAKE or a governance token — you automatically qualify for tiered fee discounts. The fee tiers are configurable in the Brevis Portal, and all eligibility is calculated trustlessly via Brevis’s attestation engine.
- Trading Volume Discount Hook: Also a BeforeSwap hook. It rewards active users based on how much they’ve traded in a specific pool over time. No staking, no claims, no third parties. Just pure on-chain logic, backed by trustless off-chain computation that proves and calculates your trading volume history.

Behind the scenes, Brevis is periodically attesting VIP user statuses for each discount-enabled pool. When you go to swap, PancakeSwap’s router fetches the attested data, calculates the best available discounts, and provides you with the optimal path instantly — making smart routing even smarter.
This isn’t just innovation for the sake of innovation — it’s UX that adapts to the user, powered by logic that responds to the market.
To kick things off, we’ve worked with PancakeSwap to launch several pools using these new hooks!
Trading Volume Discount Pools
| Pool | Pool Type | Base Fee |
|---|---|---|
| USDT-USDC | CLAMM | 0.01% |
| ETH-USDT | CLAMM | 0.05% |
Trading Volume Discount Pool Tiers
USDT-USDC
| Level | 30-Day Trade Volume | Discount |
|---|---|---|
| Regular | <= 50,000 USD | No Discount |
| VIP 1 | > 50,000 USD | 5% |
| VIP 2 | > 1,000,000 USD | 15% |
| VIP 3 | > 5,000,000 USD | 25% |
| VIP 4 | > 15,000,000 USD | 35% |
| VIP 5 | > 20,000,000 USD | 45% |
ETH-USDT
| Level | 30-Day Trade Volume | Discount |
|---|---|---|
| Regular | <= 28 ETH | No Discount |
| VIP 1 | > 28 ETH | 5% |
| VIP 2 | > 555 ETH | 15% |
| VIP 3 | > 2,778 ETH | 25% |
| VIP 4 | > 8,333 ETH | 35% |
| VIP 5 | > 11,111 ETH | 45% |
Token Holding (CAKE) Discount Pools
| Pool | Pool Type | Base Fee |
|---|---|---|
| CAKE-USDT | CLAMM | 0.25% |
| BNB-USDT | LBAMM | 0.05% |
| BTCB-BNB | CLAMM | 0.05% |
| CAKE-BNB | CLAMM | 0.25% |
Token Holding (CAKE) Discount Tiers
| Level | Time Weighted Average CAKE Balance | Discount |
|---|---|---|
| Regular | <= 100 CAKE | No Discount |
| VIP 1 | > 100 CAKE | 5% |
| VIP 2 | > 1,000 CAKE | 15% |
| VIP 3 | > 10,000 CAKE | 25% |
| VIP 4 | > 20,000 CAKE | 35% |
| VIP 5 | > 30,000 CAKE | 45% |
Why This Matters: Expressiveness Meets Trustlessness
In traditional DEXs, every user gets the same static experience. But not all users are the same — some are long-term holders, some are frequent traders, some contribute liquidity, and some are new arrivals.
Hooks let us change that, and Brevis makes it safe.
Trustless data-driven hooks are developers’ new tools for building richer applications without touching core protocol code. They create fair, personalized user experiences without positioning users’ assets into additional risk vectors or trusted centralized actors. Protocols also gain more expressive power to design incentive structures and fee models for their tokens that are tailored to their communities.
This is the kind of composability that DeFi has always promised — but rarely delivered in a fully trustless way. Until now.
Looking Ahead: Even Smarter Pools, More Powerful Hooks
Brevis is actively working to expand its trustless hook ecosystem on PancakeSwap Infinity. Upcoming features include:
- Dynamic Fees Based on Market Conditions: Make real-time swap fee adjustments based on volatility or liquidity depth.
- Intelligent LP Rewards: Allocate LP incentives based on behaviors such as consistent liquidity provision, slippage reduction, or community token holdings.
- Custom Hook Recipes: Mix and match logic modules to create gamified pools, governance-based rewards, or real-time yield enhancements.
The goal? Give developers a drag-and-drop playground for building rich, composable, and user-centric AMMs — with zero compromises on trust or performance.
Build with Brevis Today
Together, Brevis and PancakeSwap are paving the way for the next generation of programmable, intelligent DeFi infrastructure through a modular hook architecture combined with powerful ZK computation.
If you’re a developer looking to launch a hook-enabled pool on PancakeSwap Infinity, the Brevis Portal is your launchpad. Whether you’re designing a loyalty program, gamified liquidity incentives, or dynamic fee structures, the Brevis Portal lets you deploy powerful hooks in minutes with zero trust assumptions. Configure your logic, deploy your hooks, and go live — all while Brevis handles the computation and attestation.
Let’s build smarter.
Contact us to get started!
About PancakeSwap
PancakeSwap is a leading multichain decentralized exchange that operates on an automated market maker (AMM) model and is available across nine chains: BNB Chain, Ethereum, Aptos, Polygon zkEVM, zkSync Era, Arbitrum One, Linea, Base, and opBNB. Launched in 2020, PancakeSwap is one of the most popular DEXs in the cryptocurrency industry due to its low transaction fees, high-speed trading, and user-friendly platform. PancakeSwap has over $1.7 billion in total value locked and $1.2 trillion in trading volume, making it a leading multichain DEX in the industry. For more information, visit https://pancakeswap.finance/
🌐Website | 🗨️Telegram | 🐦X | 🔊Discord |
About Brevis
Brevis is an efficient, verifiable off-chain computation engine powered by zero-knowledge proofs. It enables Web3 applications to offload data-intensive and costly computations from on-chain environments to a significantly lower-cost off-chain engine. With Brevis, applications can scale seamlessly while maintaining the security of L1 trust assumptions.
By leveraging cutting-edge ZK technology, Brevis empowers developers to build scalable, cost-effective, and trustless solutions for complex computations, unlocking new possibilities for decentralized applications.
Dive Deeper into Brevis:
🌐Website | 🗨️Telegram | 🐦X | 🔊Discord | 📘SDK Docs
Interested in building with Brevis? Reach out to us to explore ideas!

