.png)
Drift Builder Codes (DBC) enables developers to build on top of Drift while earning fees for routing trades. This innovation establishes a new financial incentive infrastructure layer on Solana, designed to power a permissionless, composable ecosystem of apps, bots, and trading frontends, all backed by Drift’s deep liquidity and efficient execution engine.
Drift is the first Solana-based DEX to offer per-order monetisation for third-party frontends. This incentive structure aligns builders, traders, and liquidity providers in one seamless trading ecosystem.
What Are Builder Codes?
Builder Codes make it simple for anyone to integrate Drift’s liquidity and order execution into their own applications without managing backend infrastructure.
Whether you’re building a trading UI, automation tool, or aggregator, Builder Codes make your innovation rewarding from day one.
Key Benefits of Builder Codes
- Earn on Every Order: Builders collect fees for every trade routed through their application.
- Frictionless Development: No backend required. Simply integrate Drift’s on-chain liquidity on Day 1.
- Permissionless Growth: Anyone can create new trading frontends, bots and tools without centralised approval.
- Ecosystem Alignment: Builders, market makers, and Drift share incentives for Solana liquidity growth.
How It Works
DBC works in 4 simple steps:
- Builder Registration – Create a Drift account and set up a RevenueShareAccount to start receiving fees.
- User Approval – Traders choose your application and define a max fee they’re willing to pay.
- Order Routing & Fee Tracking– Every trade includes your Builder ID, and defined fees which is tracked and logged in the escrow.
- Settlement – Fees are collected per order and sent to builder’s revenue share account when users settle their PnL.
Notes for Market Makers
- Escrow Inclusion: Market makers and fillers must include the RevenueShareEscrow account in every order fill transaction. No extra RPC calls are needed to derive it.
- Multi-Builder Support: Users can approve multiple builders. Rewards can be settled across multiple accounts, ensuring full flexibility.
- Error Handling: If a required escrow is missing, the protocol will throw an error. Always include it to ensure smooth settlement.
Additional Details:
- Users will be able to approve multiple builders, each with its own fee limit.
- All fees are capped by user-set limits; attempts to exceed them will result in transaction failure.
- Market makers don’t need to know or manage multiple builder accounts, just including escrow will enable reward accrual and settlement.
- Builder rewards are distributed when users settle their PnL, ensuring smooth and transparent payouts.
What’s Next?
Builder Codes are a new financial primitive for DeFi: a way to reward innovation and drive liquidity growth on Solana. By making Drift’s execution layer open and composable, Drift is empowering developers to create:
- Custom trading interfaces
- Automation tools and trading bots
- Cross-platform aggregators
This is just the beginning of a permissionless trading ecosystem built for growth.
Start Building
Builder Codes are now in private beta. Want to participate or learn more?
- Read the Docs
- Contact Drift team via Telegram at @wdotsol or @airtightfish for additional support
- Join the Discord



.png)
.png)
.png)