The Whirlpools smart contract is now open-source!
Following a successful dual-audit and $1 billion in volume, all core Whirlpools code is now open-source!
Whirlpools have been steadily swirling since they opened in our ecosystem in March. Unlocking better prices for traders and greater capital efficiency for LPs, these concentrated liquidity pools have already facilitated over $1 billion in trading volume on Orca! 🐋
Whirlpools is an open-sourced concentrated liquidity automated market maker (CLAMM) program built for the Solana ecosystem. This custom contract is specifically designed for the Solana virtual machine and emphasizes security and efficiency.
Our talented engineering team has worked diligently on creating the most efficient and elegant solution to deliver concentrated liquidity pools on Orca. Now it’s time to share Whirlpools with the entire Solana ecosystem and help other protocols leverage the efficiency of concentrated liquidity. ☀️
We’re excited to announce that all core Whirlpools code is now open-source!
Whirlpools have been dual-audited by both Neodyme and Kudelski Security and the audit reports are available on our new Orca Developer Portal. In addition, an Orca DAO governance proposal has passed in favor of a bug bounty program to truly battle test this contract. This bug bounty program will go live on Wednesday in collaboration with ImmuneFi!
Ready to build? The blueprints are here 👇
Here’s everything you need to get started:
- Smart contract for Whirlpools: open-sourced Rust smart contract, including Anchor IDL
- Whirlpools SDK: allows you to interact with the Whirlpools Protocol, such as position management and swaps
- Developer Portal: detailed tutorials on everything you need to know for interacting with the protocol
Whirlpools are Orca’s core product and a first in many respects for concentrated liquidity on Solana — one of the most requested improvements is first class support for liquidity mining, including automatic accrual of rewards (no staking of LP tokens required!). We’ll also be focusing heavily on developer education, including simple documentation and tutorials to help builders integrate or use Whirlpools.
Below are a few ideas of what to expect. And builders: Tell us what you’d like to see!
- How to debug smart-contract errors on Whirlpools
- How to make a swap and create a position with Orca’s Typescript SDK
- How to make a swap and create a position with Rust CPI calls
We’ll also be shipping some technical changes to further improve the usability of the Whirlpools SDK in the coming weeks, including…
- APR calculations
- Additional quote types and tests on the swap instruction to ease the developer experience
- Improved tick-array handling for quoting swap instructions
- Liquidity distribution calculation
There are already several ecosystem projects choosing to leverage Orca’s infrastructure, including Parcl (for concentrated liquidity) and Jupiter (for swaps). If you’re a builder and want to get in touch with the Orca team, dive on into the #integrate-with-orca channel on our Discord! 🐬
Lastly, if you’re a builder participating in one of the upcoming Solana Hacker Houses, keep an eye out for details on the Whirlpools Builders Program. 👀
Disclaimer: The content of this communication is not financial advice and should not be relied on by any persons as financial advice. This communication has not been provided in consideration of any recipient’s financial needs. We have not conducted any financial assessment based on the personal circumstances of any recipients. Before using the protocol, carefully review all relevant documentation and consider risks including total loss of funds.